Skip to content

Commit

Permalink
MNT: Remove distutils
Browse files Browse the repository at this point in the history
  • Loading branch information
pllim committed Dec 31, 2021
1 parent 2611bd0 commit 086d5eb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[build-system]
requires = ["setuptools>=30.3.0",
"setuptools_scm",
"wheel"]
build-backend = 'setuptools.build_meta'
2 changes: 1 addition & 1 deletion pytest_mpl/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def compare_image_to_baseline(self, item, fig, result_dir):
"Generated Image: \n\t"
f"{test_image}")

# distutils may put the baseline images in non-accessible places,
# setuptools may put the baseline images in non-accessible places,
# copy to our tmpdir to be sure to keep them in case of failure
baseline_image = (result_dir / "baseline.png").absolute()
shutil.copyfile(baseline_image_ref, baseline_image)
Expand Down
10 changes: 0 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
#!/usr/bin/env python

import sys
from distutils.version import LooseVersion

try:
import setuptools
assert LooseVersion(setuptools.__version__) >= LooseVersion('30.3')
except (ImportError, AssertionError):
sys.stderr.write("ERROR: setuptools 30.3 or later is required\n")
sys.exit(1)

from setuptools import setup

setup(use_scm_version=True)

0 comments on commit 086d5eb

Please sign in to comment.