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
|
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
|
from distribute_setup import use_setuptools
|
||||||
use_setuptools()
|
use_setuptools()
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
long_description = """
|
long_description = """
|
||||||
cross-project testing tool for Python.
|
cross-project testing tool for Python.
|
||||||
|
@ -68,4 +72,4 @@ def make_entry_points():
|
||||||
return {'console_scripts': l}
|
return {'console_scripts': l}
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -4,7 +4,7 @@ envlist=py26,py27,py31,py32,py27-xdist,py25,py24
|
||||||
indexserver=
|
indexserver=
|
||||||
pypi = http://pypi.python.org/simple
|
pypi = http://pypi.python.org/simple
|
||||||
testrun = http://pypi.testrun.org
|
testrun = http://pypi.testrun.org
|
||||||
default = http://pypi.testrun.org
|
default = http://pypi.python.org/simple
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
changedir=testing
|
changedir=testing
|
||||||
|
|
Loading…
Reference in New Issue