Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(5)

Unified Diff: Lib/distutils/command/install.py

Issue 3871: cross and native build of python for mingw32 with distutils
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/distutils/command/build_ext.py ('k') | Lib/distutils/cygwinccompiler.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/distutils/command/install.py Thu Dec 27 23:52:36 2012 +0200
+++ b/Lib/distutils/command/install.py Thu Dec 27 17:35:12 2012 -0500
@@ -384,7 +384,16 @@
# If a new root directory was supplied, make all the installation
# dirs relative to it.
- if self.root is not None:
+
+ # root and prefix aren't clearly defined or used in the midst of this install
+ # on posix systems prefix is used to define a base path. If root is used
+ # in addition, it will prefix the prefix path. Not sure if that's intentional
+ # or not but it certainly doesn't work on mingw.
+ # Ex: prefix=/mingw/, root=/mingw/lib
+ # this will distribute all the scrits and libs in /mingw/lib/mingw
+ #
+ print('root=%s, prefix-%s' % (self.root, prefix))
+ if self.root is not None and prefix is None:
self.change_roots('libbase', 'lib', 'purelib', 'platlib',
'scripts', 'data', 'headers')
« no previous file with comments | « Lib/distutils/command/build_ext.py ('k') | Lib/distutils/cygwinccompiler.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+