|
13 | 13 | Python 2.6. |
14 | 14 |
|
15 | 15 | In addition to what is supplied with OS X 10.5+ and Xcode 3+, the script |
16 | | -requires an installed version of git and a third-party version of |
| 16 | +requires an installed third-party version of |
17 | 17 | Tcl/Tk 8.4 (for OS X 10.4 and 10.5 deployment targets) or Tcl/TK 8.5 |
18 | 18 | (for 10.6 or later) installed in /Library/Frameworks. When installed, |
19 | 19 | the Python built by this script will attempt to dynamically link first to |
|
23 | 23 |
|
24 | 24 | 32-bit-only installer builds are still possible on OS X 10.4 with Xcode 2.5 |
25 | 25 | and the installation of additional components, such as a newer Python |
26 | | -(2.5 is needed for Python parser updates), git, and for the documentation |
| 26 | +(2.5 is needed for Python parser updates) and for the documentation |
27 | 27 | build either svn (pre-3.4.1) or sphinx-build (3.4.1 and later). |
28 | 28 |
|
29 | 29 | Usage: see USAGE variable in the script. |
@@ -635,9 +635,8 @@ def checkEnvironment(): |
635 | 635 | base_path = base_path + ':' + OLD_DEVELOPER_TOOLS |
636 | 636 | os.environ['PATH'] = base_path |
637 | 637 | print("Setting default PATH: %s"%(os.environ['PATH'])) |
638 | | - # Ensure ws have access to git and to sphinx-build. |
639 | | - # You may have to create links in /usr/bin for them. |
640 | | - runCommand('git --version') |
| 638 | + # Ensure we have access to sphinx-build. |
| 639 | + # You may have to create a link in /usr/bin for it. |
641 | 640 | runCommand('sphinx-build --version') |
642 | 641 |
|
643 | 642 | def parseOptions(args=None): |
@@ -1142,8 +1141,25 @@ def buildPython(): |
1142 | 1141 | shellQuote(WORKDIR)[1:-1], |
1143 | 1142 | shellQuote(WORKDIR)[1:-1])) |
1144 | 1143 |
|
1145 | | - print("Running make") |
1146 | | - runCommand("make") |
| 1144 | + # Look for environment value BUILDINSTALLER_BUILDPYTHON_MAKE_EXTRAS |
| 1145 | + # and, if defined, append its value to the make command. This allows |
| 1146 | + # us to pass in version control tags, like GITTAG, to a build from a |
| 1147 | + # tarball rather than from a vcs checkout, thus eliminating the need |
| 1148 | + # to have a working copy of the vcs program on the build machine. |
| 1149 | + # |
| 1150 | + # A typical use might be: |
| 1151 | + # export BUILDINSTALLER_BUILDPYTHON_MAKE_EXTRAS=" \ |
| 1152 | + # GITVERSION='echo 123456789a' \ |
| 1153 | + # GITTAG='echo v3.6.0' \ |
| 1154 | + # GITBRANCH='echo 3.6'" |
| 1155 | + |
| 1156 | + make_extras = os.getenv("BUILDINSTALLER_BUILDPYTHON_MAKE_EXTRAS") |
| 1157 | + if make_extras: |
| 1158 | + make_cmd = "make " + make_extras |
| 1159 | + else: |
| 1160 | + make_cmd = "make" |
| 1161 | + print("Running " + make_cmd) |
| 1162 | + runCommand(make_cmd) |
1147 | 1163 |
|
1148 | 1164 | print("Running make install") |
1149 | 1165 | runCommand("make install DESTDIR=%s"%( |
|
0 commit comments