Skip to content

Commit 5287eac

Browse files
committed
Prefer setuptools to distutils
Keep support for distutils since it's convenient to use a Python built from source but not installed.
1 parent ab11e20 commit 5287eac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/setup.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727
]
2828

2929
def main():
30-
from distutils.core import setup, Extension
30+
try:
31+
from setuptools import setup, Extension
32+
except ImportError:
33+
from distutils.core import setup, Extension
3134
import sys
3235

3336
if len(sys.argv) >= 3 and sys.argv[2] == '--build-cppext':

0 commit comments

Comments
 (0)