[pywin32-bugs] [ pywin32-Patches-2896067 ] Patch for a successful "setup.py --prefix"
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2010-08-27 06:54:03
|
Patches item #2896067, was opened at 2009-11-12 04:25 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551956&aid=2896067&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Sridhar Ratnakumar (nearfar) Assigned to: Nobody/Anonymous (nobody) Summary: Patch for a successful "setup.py --prefix" Initial Comment: Since APy build scripts run "setup.py install --prefix=<path to image dir>", we should use distutils' self.prefix (instead of sys.prefix - that points to the Python build directory) when finding previously installed file. Index: pywin32/setup.py =================================================================== --- pywin32/setup.py.orig 2009-11-10 17:00:30.000000000 -0800 +++ pywin32/setup.py 2009-11-10 17:00:49.000000000 -0800 @@ -1283,7 +1283,7 @@ if not self.dry_run and not self.root: # We must run the script we just installed into Scripts, as it # may have had 2to3 run over it. - filename = os.path.join(sys.prefix, "Scripts", "pywin32_postinstall.py") + filename = os.path.join(self.prefix, "Scripts", "pywin32_postinstall.py") if not os.path.isfile(filename): raise RuntimeError("Can't find '%s'" % (filename,)) print "Executing post install script..." ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2010-08-27 16:54 Message: Thanks! Checking in setup.py; new revision: 1.111; previous revision: 1.110 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551956&aid=2896067&group_id=78018 |