File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed
Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -1168,8 +1168,25 @@ def buildPython():
11681168 shellQuote (WORKDIR )[1 :- 1 ],
11691169 shellQuote (WORKDIR )[1 :- 1 ]))
11701170
1171- print ("Running make" )
1172- runCommand ("make" )
1171+ # Look for environment value BUILDINSTALLER_BUILDPYTHON_MAKE_EXTRAS
1172+ # and, if defined, append its value to the make command. This allows
1173+ # us to pass in version control tags, like GITTAG, to a build from a
1174+ # tarball rather than from a vcs checkout, thus eliminating the need
1175+ # to have a working copy of the vcs program on the build machine.
1176+ #
1177+ # A typical use might be:
1178+ # export BUILDINSTALLER_BUILDPYTHON_MAKE_EXTRAS=" \
1179+ # GITVERSION='echo 123456789a' \
1180+ # GITTAG='echo v3.6.0' \
1181+ # GITBRANCH='echo 3.6'"
1182+
1183+ make_extras = os .getenv ("BUILDINSTALLER_BUILDPYTHON_MAKE_EXTRAS" )
1184+ if make_extras :
1185+ make_cmd = "make " + make_extras
1186+ else :
1187+ make_cmd = "make"
1188+ print ("Running " + make_cmd )
1189+ runCommand (make_cmd )
11731190
11741191 print ("Running make install" )
11751192 runCommand ("make install DESTDIR=%s" % (
You can’t perform that action at this time.
0 commit comments