[Python-bugs-list] [ python-Bugs-521526 ] Problems when python is renamed

noreply@sourceforge.net noreply@sourceforge.net
Fri, 22 Feb 2002 09:38:18 -0800


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

>Category: Distutils
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: R. Lindsay Todd (rltodd)
Assigned to: M.-A. Lemburg (lemburg)
Summary: Problems when python is renamed

Initial Comment:
I use a RedHat 7.2 system where Python 2.2 in an
executable /usr/bin/python2.  This causes some problems
with using distutils.

1) If I say "python2 setup.py bdist_rpm" it creates an
RPM spec file that uses plain "python" instead of
"python2".  Seems to me that this should make use of
the path to the interpreter that is actually running. 
Fortunately this fails, so I can manually hack the spec
file...

2) When including scripts to be interpreted, distutils
looks for the leading #! and the word "python".  My
scripts have the word "python2", since I want to be
able to test them directly.  It seems like distutils
could somehow handle versioned python's, like looking
for a word that begins with "python", or perhaps some
other magic sequence.


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

>Comment By: M.-A. Lemburg (lemburg)
Date: 2002-02-22 09:38

Message:
Logged In: YES 
user_id=38388

1) use "python setup.py bdist_rpm --python python2";
not a bug.

2) this would require extending the RE in build_scripts.py;
however, I'm not sure what magic you have in mind here ?


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

Comment By: M.-A. Lemburg (lemburg)
Date: 2002-02-22 09:37

Message:
Logged In: YES 
user_id=38388

1) use "python setup.py bdist_rpm --python python2";
not a bug.

2) this would require extending the RE in build_scripts.py;
however, I'm not sure what magic you have in mind here ?


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

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