mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-20 17:52:50 +00:00
setup.py: remove __requires__
This is more cleanup from the 1582 zetuptoolzs-ectomy. __requires__ was used to make sure that 'setup.py test' would have all our dependencies on sys.path, but has the severe drawback of requiring all deps to be available before any setup.py command can work, including the 'setup.py sdist' that tox uses (to populate the new virtualenvs it creates). Now that we use tox for tests, we don't need 'setup.py test' any more, but I'll remove that later (after this release). Right now we just need to get rid of this __requires__ line, as it was causing 'tox' sdist failures.
This commit is contained in:
parent
fa99b98706
commit
dbe314e8df
7
setup.py
7
setup.py
@ -53,11 +53,6 @@ else:
|
||||
print("Error -- this setup.py file is configured with the 'application name' to be '%s', but there is already a file in place in '%s' which contains the contents '%s'. If the file is wrong, please remove it and setup.py will regenerate it and write '%s' into it." % (APPNAME, APPNAMEFILE, curappnamefilestr, APPNAMEFILESTR))
|
||||
sys.exit(-1)
|
||||
|
||||
# setuptools looks in __main__.__requires__ for a list of
|
||||
# requirements. When running "python setup.py test", __main__ is
|
||||
# setup.py, so we put the list here so that the requirements will be
|
||||
# available for tests:
|
||||
|
||||
# Tahoe's dependencies are managed by the find_links= entry in setup.cfg and
|
||||
# the _auto_deps.install_requires list, which is used in the call to setup()
|
||||
# below.
|
||||
@ -70,8 +65,6 @@ if len(sys.argv) > 1 and sys.argv[1] == '--fakedependency':
|
||||
del sys.argv[1]
|
||||
install_requires += ["fakedependency >= 1.0.0"]
|
||||
|
||||
__requires__ = install_requires[:]
|
||||
|
||||
from setuptools import setup
|
||||
from setuptools.command import sdist
|
||||
from setuptools import Command
|
||||
|
Loading…
x
Reference in New Issue
Block a user