1. Enrico Ambrosini
  2. gevent-py3k

Commits

Denis Bilenko  committed 97a89d6

make setup.py import setuptools if it sees bdist_egg in sys.argv

  • Participants
  • Parent commits e7e4f92
  • Branches default
  • Tags 0.13.0b2

Comments (0)

Files changed (1)

File setup.py

View file
 import traceback
 import glob
 from distutils.command import build_ext
-from distutils.core import Extension, setup
+if 'bdist_egg' in sys.argv:
+    from setuptools import Extension, setup
+else:
+    from distutils.core import Extension, setup
 from os.path import join, isdir, abspath, basename, exists
 
 __version__ = re.search("__version__\s*=\s*'(.*)'", open('gevent/__init__.py').read(), re.M).group(1)