[ python-Bugs-935091 ] bdist_winist post-install script fails on non-admin Python

SourceForge.net noreply at sourceforge.net
Thu Jul 1 19:52:41 EDT 2004


Bugs item #935091, was opened at 2004-04-15 03:54
Message generated for change (Comment added) made by mhammond
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=935091&group_id=5470

Category: Distutils
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: David R. Handy (davidhandy)
Assigned to: Thomas Heller (theller)
Summary: bdist_winist post-install script fails on non-admin Python

Initial Comment:
Python version 2.3.3
Windows 98

If you install Python on Windows, and you selected a
"Non Admin" install, then later on when you run any
distutils-created installer that has a post-install
script, the post-install script will not run. This in
turn causes shortcuts to not be created, skips
additional install steps, etc.

The reason for this is pretty simple: a non-admin
install of Python puts python23.dll in the C:\Python23
directory instead of in C:\WINDOWS\SYSTEM (or the
equivalent on your version of windows). The extractor
stub used by bdist_wininst does a simple LoadLibrary(),
with no path information, to get python23.dll. This
only looks in the current directory or in the PATH.

What the extractor stub program ought to do in this
case is a LoadLibrary() giving the full path (i.e.
C:\Python23\python23.dll) since the Python installation
directory is known.


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

>Comment By: Mark Hammond (mhammond)
Date: 2004-07-02 09:52

Message:
Logged In: YES 
user_id=14198

I can't repro this on the trunk at the moment - a non-admin
install of Python allowed my non-admin user to correctly
install an extension with a post-install script.

The log of install.c shows Thomas did it in revision 1.4, so
I'm closing this as fixed.

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

Comment By: Thomas Heller (theller)
Date: 2004-05-12 01:16

Message:
Logged In: YES 
user_id=11105

This is already fixed in the release23-maint branch, so it
should be fixed in Python 2.3.4.
I will port this to the trunk later.

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

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



More information about the Python-bugs-list mailing list