bad interpreter error with python-subunit 1.0.0 installed by pip

Bug #1394055 reported by Yi Ming Yin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
subunit
Fix Released
Critical
Robert Collins

Bug Description

With the latest python-subunit 1.0.0, if I used pip install python-subunit. 2 installed scripts under /usr/bin/ will have bad interpreter set at the first line with #!:

/usr/bin/subunit2junitxml:

#!/home/robertc/work/nova/.venv/bin/python
# subunit: extensions to python unittest to get test results from subprocesses.
# Copyright (C) 2009 Robert Collins <email address hidden>
#

#!/home/robertc/work/nova/.venv/bin/python
# subunit: extensions to python unittest to get test results from subprocesses.
# Copyright (C) 2010 Jelmer Vernooij <email address hidden>
#

However, if I download the source code from pypi, all the interpreter has been set correctly to #!/usr/bin/env python.

I noticed that these bad scripts are included in pypi python wheel file:
https://pypi.python.org/packages/2.7/p/python-subunit/python_subunit-1.0.0-py2.py3-none-any.whl#md5=57780d8cf11e9968ae78fd5ea32397af

Yi Ming Yin (yinym-m)
description: updated
Revision history for this message
Robert Collins (lifeless) wrote :

I've removed the wheel, will dig into why that happened later.

Changed in subunit:
status: New → Fix Released
assignee: nobody → Robert Collins (lifeless)
importance: Undecided → Critical
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.