Patch #736857, #736859: Add -e option to build_scripts.
diff --git a/Lib/distutils/command/build.py b/Lib/distutils/command/build.py
index 7823154..e6b3991 100644
--- a/Lib/distutils/command/build.py
+++ b/Lib/distutils/command/build.py
@@ -40,6 +40,8 @@
"compile extensions and libraries with debugging information"),
('force', 'f',
"forcibly build everything (ignore file timestamps)"),
+ ('executable=', 'e',
+ "specify final destination interpreter path (build.py)"),
]
boolean_options = ['debug', 'force']
@@ -61,6 +63,7 @@
self.compiler = None
self.debug = None
self.force = 0
+ self.executable = None
def finalize_options (self):
@@ -93,6 +96,8 @@
self.build_scripts = os.path.join(self.build_base,
'scripts-' + sys.version[0:3])
+ if self.executable is None:
+ self.executable = os.path.normpath(sys.executable)
# finalize_options ()