only invoke distribute's use_setuptools when there is no setuptools installed
This commit is contained in:
parent
bc66cd85b1
commit
c2cdc66eca
8
setup.py
8
setup.py
|
@ -1,8 +1,12 @@
|
|||
import os, sys
|
||||
if sys.version_info >= (3,0):
|
||||
try:
|
||||
from setuptools import setup
|
||||
except ImportError:
|
||||
if sys.version_info < (3,0):
|
||||
raise
|
||||
from distribute_setup import use_setuptools
|
||||
use_setuptools()
|
||||
from setuptools import setup
|
||||
from setuptools import setup
|
||||
|
||||
long_description = """
|
||||
cross-project testing tool for Python.
|
||||
|
|
Loading…
Reference in New Issue