Bug 1387561
Summary: | NT escaping in shebang in easy_install | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Jan Pokorný [poki] <jpokorny> |
Component: | python-setuptools | Assignee: | Python Maintainers <python-maint> |
Status: | CLOSED WONTFIX | QA Contact: | BaseOS QE - Apps <qe-baseos-apps> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.5 | CC: | cstratak, hhorak, jpokorny, python-maint, qe-baseos-apps |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | 1353934 | Environment: | |
Last Closed: | 2017-02-15 18:44:21 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1353934 | ||
Bug Blocks: | 1367536 |
Description
Jan Pokorný [poki]
2016-10-21 09:11:50 UTC
Is there some simple way to reproduce the issue? Yes, grab a setup.py using (and setuptools-compatible) package that defines "console_scripts" there (clufter in my case) and run: # python setup.py saveopts -f setup.cfg build_scripts \ "--executable=python -Es" # python setup.py build # python setup.py install Then, observe the scripts from console_scripts definition cannot be run because of malformed shebang. (forgot to drop needinfo flag) Unfortunately as Michal already pointed out (see bug 1353934) there have been way too many changes upstream when the fix was implemented, so currently a backport of the fix is impossible without refactoring a lot of the relevant setuptools code. This would be a very invasive change on the way that shebangs are being generated currently, so in this case there is an elevated risk that the current working shebang generation will break (or break other working corner cases), just to fix this specific corner case. In this particular situation that you reported it would be preferable that the workaround is being used at the individual components, rather than fixing setuptools itself. Closing it as WONTFIX. |