Commit 34af7eb9d0ff79aa1467b08bd802b38b672fc7fa
1 parent
feb2d39d
Fall back to distutils.core if setuptools is not installed
Showing
1 changed file
with
4 additions
and
1 deletions
pyext/setup.py.in
... | ... | @@ -23,7 +23,10 @@ if sys.version_info < (3, 2): |
23 | 23 | from distutils import sysconfig |
24 | 24 | else: |
25 | 25 | import sysconfig |
26 | -from setuptools import setup, Extension | |
26 | +try: | |
27 | + from setuptools import setup, Extension | |
28 | +except (ImportError): | |
29 | + from distutils.core import setup, Extension | |
27 | 30 | import glob |
28 | 31 | import os |
29 | 32 | ... | ... |