[Python-bugs-list] [ python-Bugs-477371 ] build_scripts can use wrong #! line

noreply@sourceforge.net noreply@sourceforge.net
Mon, 10 Dec 2001 07:21:15 -0800


Bugs item #477371, was opened at 2001-11-01 19:22
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=477371&group_id=5470

Category: Distutils
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthew Mueller (donut)
>Assigned to: Michael Hudson (mwh)
Summary: build_scripts can use wrong #! line

Initial Comment:
When the build_scripts command is run, it places into
build/scripts a copy of the script with the #! line
modified to call the python version directly.  But if
you subsequently call setup.py with a different python
version, the script is not updated to use the correct
python executable path.

----------------------------------------------------------------------

>Comment By: Guido van Rossum (gvanrossum)
Date: 2001-12-10 07:21

Message:
Logged In: YES 
user_id=6380

Works for me. Back to you.

----------------------------------------------------------------------

Comment By: Michael Hudson (mwh)
Date: 2001-12-10 04:41

Message:
Logged In: YES 
user_id=6656

And I'd like someone else to have a look at this before I
apply it (if indeed I do), so I'm unassigning it from me.

----------------------------------------------------------------------

Comment By: Michael Hudson (mwh)
Date: 2001-12-10 03:01

Message:
Logged In: YES 
user_id=6656

Try this.

----------------------------------------------------------------------

Comment By: Michael Hudson (mwh)
Date: 2001-12-08 03:15

Message:
Logged In: YES 
user_id=6656

Fair point.

Should be fairly easy to fix.  I'll have a go next week, but
feel free to submit a patch before then <wink>.

----------------------------------------------------------------------

Comment By: Matthew Mueller (donut)
Date: 2001-12-07 18:13

Message:
Logged In: YES 
user_id=65253

Uh, I guess maybe it doesn't bother you, but it sees an odd
inconsistancy that build_ext puts its generated files in
version-specific dirs, yet build_scripts makes no attempt to
handle it.

If you are never supposed to run setup.py with more than one
version of python then why does build_ext handle it?

----------------------------------------------------------------------

Comment By: Michael Hudson (mwh)
Date: 2001-12-07 05:28

Message:
Logged In: YES 
user_id=6656

So don't do that then?

Surely you're going to get problems with various other bits
of distutils if you're not consistent about which Python you
run setup.py with?

Very much inclined to close this...

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=477371&group_id=5470