This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Custom commands don't work
Type: behavior Stage: resolved
Components: Distutils2 Versions: 3rd party
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: eric.araujo Nosy List: LEW21, alexis, eric.araujo, python-dev, tarek
Priority: normal Keywords: patch

Created on 2012-05-05 19:54 by LEW21, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
fix-custom-commands.patch LEW21, 2012-05-05 19:54 Patch
Messages (3)
msg160035 - (view) Author: Janusz Lewandowski (LEW21) Date: 2012-05-05 19:54
Running (by pysetup run cmdname) custom commands doesn't work, because setup.cfg is parsed after command handling.

I've attached a patch to fix this behavior.
msg160041 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2012-05-05 21:08
Thanks for the report and patch.  I discovered the same thing a few weeks ago when working on a bug with a contributor; I thought there was already a bug opened for that but apparently not.  The fix I had in mind is the same as your patch, and I also have a test for this.

This was not caught before because our tests use internal objects directly (i.e. the Distribution class), so the run function is not exercised by the test suite.  Some of the tests are starting to use subprocess instead so that we can really test the script.
msg161291 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-05-21 19:56
New changeset 70831fde0ec4 by Éric Araujo in branch 'default':
Have pysetup read setup.cfg early to find custom commands (#14733).
http://hg.python.org/distutils2/rev/70831fde0ec4
History
Date User Action Args
2022-04-11 14:57:29adminsetgithub: 58938
2014-03-13 07:43:14eric.araujosetstatus: open -> closed
stage: resolved
resolution: fixed
versions: - Python 3.3
2012-05-21 19:56:03python-devsetnosy: + python-dev
messages: + msg161291
2012-05-10 03:08:47eric.araujolinkissue14651 dependencies
2012-05-05 21:08:35eric.araujosetmessages: + msg160041
versions: + 3rd party, Python 3.3, - Python 2.7
2012-05-05 19:54:57LEW21create