support "setup.py test" and "setup.py develop"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pyflakes |
Fix Released
|
Low
|
Unassigned |
Bug Description
The setup.py could optionally use distribute/
The library distribute (or setuptools) is very common in the Python ecosystem, and many tools depend on them, like "pip install", "virtualenv", "zc.buildout", ...
Of course there's some criticism about these tools, but they exist, they are compatible, and they work fine for a lot of developers.
They fill a use case as explained below.
The benefit of using distribute/
$ python setup.py test
This allows to run the tests, and it takes care of installing the 'test_requires' dependencies without other action. Anyone can run the tests without any assumption about the test framework, and without digging through the source code to know which libraries are required (nose, py.test, twisted.trial, unittest, etc...).
This particular use case is not supported by the distutils library.
Another verb which is widely used but not supported by distutils:
$ python setup.py develop
And the best is that it is fully optional.
When the distribute/
For the record, there are some users which already suggested this change: https:/
Related branches
summary: |
- supports "setup.py test" and "setup.py develop" + support "setup.py test" and "setup.py develop" |
Changed in pyflakes: | |
status: | New → Confirmed |
importance: | Undecided → Low |
status: | Confirmed → Fix Committed |
Changed in pyflakes: | |
milestone: | none → 0.6.1 |
status: | Fix Committed → Fix Released |