Skip to content

Commit

Permalink
Merge pull request #464 from adamjstewart/distutils
Browse files Browse the repository at this point in the history
Replace distutils with setuptools/sysconfig
  • Loading branch information
rkaminsk committed Nov 2, 2023
2 parents b70ed6d + 05ec3b1 commit 19feff0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions cmake/python-site.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
else:
NEW_STYLE = False
from site import USER_SITE
try:
from setuptools.sysconfig import get_python_lib, get_config_vars
except ImportError:
from distutils.sysconfig import get_python_lib, get_config_vars
from distutils.sysconfig import get_python_lib, get_config_vars

parser = ArgumentParser()
if sys.version_info >= (3, 7):
Expand Down
2 changes: 1 addition & 1 deletion scratch/setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from distutils.core import setup, Extension
from setuptools import setup, Extension
import os

path = os.path.normpath(os.path.abspath(os.path.join(os.getcwd(), "build", "release", "bin")))
Expand Down

0 comments on commit 19feff0

Please sign in to comment.