Commit e2266782 authored by Denis Bilenko's avatar Denis Bilenko

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

parent eddf5f0e
...@@ -17,7 +17,10 @@ import re ...@@ -17,7 +17,10 @@ import re
import traceback import traceback
import glob import glob
from distutils.command import build_ext 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 from os.path import join, isdir, abspath, basename, exists
__version__ = re.search("__version__\s*=\s*'(.*)'", open('gevent/__init__.py').read(), re.M).group(1) __version__ = re.search("__version__\s*=\s*'(.*)'", open('gevent/__init__.py').read(), re.M).group(1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment