Skip to content

Commit c2f912f

Browse files
committed
Remove distutils
1 parent a91f288 commit c2f912f

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

mesaPlot/file_reader.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
from io import BytesIO
2525
import pandas
2626

27-
from distutils.version import StrictVersion
28-
2927
msun = 1.9892 * 10 ** 33
3028

3129
# Conviently the index of this list is the proton number

mesaPlot/plot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
import matplotlib.patheffects as path_effects
2525
import os
2626
import random
27-
from io import BytesIO
27+
2828
from cycler import cycler
2929
from scipy.interpolate import interp1d
30-
from distutils.spawn import find_executable
30+
from shutil import which
3131
import numpy.ma as ma
3232
import warnings
3333

@@ -1681,7 +1681,7 @@ def __init__(self, rcparams_fixed=True):
16811681

16821682
if rcparams_fixed:
16831683
# Set default matplotlib rcParameters (True by default)
1684-
if find_executable("latex"):
1684+
if which("latex"):
16851685
mpl.rc("text", usetex=True)
16861686
else:
16871687
mpl.rc("text", usetex=False)

0 commit comments

Comments
 (0)