Commit a0214ec587dd521b7980c920cdc0f0fb00c136cf

Authored by Jürgen Knödlseder
1 parent b87d87cf

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 import re
... ...