bdist_wininst post-install bug?

F

Fernando Perez

Hi all,

I just noticed a problem (which forced me to a last-minute update of the windows
ipython installer). As far as I can tell, this should be considered a bug.
From the Python docs, sys.executable is:

executable
A string giving the name of the executable binary for the Python
interpreter, on systems where this makes sense.

However, during the execution of a post-install script, this string actually
resolves to the name of the binary installer! This name should resolve, I
think to the name of the Python executable for which the installer is running
(a value selectable at the start of the installation, if more than one Python
is detected). Having this value available allows you to properly generate
shortcuts with the proper full path to the python executable.

I resorted to using sys.prefix+r'\python.exe', which will most likely work, but
I'd rather see sys.executable give me a more sensible answer.

Should this be filed as a distutils bug? I'd rather not clog the database if it
was the result of a deliberate decision, as strange as it may seem to me.

Cheers,

f
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top