Skip to content

Commit

Permalink
Remove distutils
Browse files Browse the repository at this point in the history
  • Loading branch information
rjfarmer committed Jul 10, 2024
1 parent a91f288 commit c2f912f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions mesaPlot/file_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
from io import BytesIO
import pandas

from distutils.version import StrictVersion

msun = 1.9892 * 10 ** 33

# Conviently the index of this list is the proton number
Expand Down
6 changes: 3 additions & 3 deletions mesaPlot/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
import matplotlib.patheffects as path_effects
import os
import random
from io import BytesIO

from cycler import cycler
from scipy.interpolate import interp1d
from distutils.spawn import find_executable
from shutil import which
import numpy.ma as ma
import warnings

Expand Down Expand Up @@ -1681,7 +1681,7 @@ def __init__(self, rcparams_fixed=True):

if rcparams_fixed:
# Set default matplotlib rcParameters (True by default)
if find_executable("latex"):
if which("latex"):
mpl.rc("text", usetex=True)
else:
mpl.rc("text", usetex=False)
Expand Down

0 comments on commit c2f912f

Please sign in to comment.