only invoke distribute's use_setuptools when there is no setuptools installed
This commit is contained in:
parent
bc66cd85b1
commit
c2cdc66eca
10
setup.py
10
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.
|
||||
|
@ -68,4 +72,4 @@ def make_entry_points():
|
|||
return {'console_scripts': l}
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
main()
|
||||
|
|
Loading…
Reference in New Issue