mirror of
				https://github.com/python/cpython.git
				synced 2025-10-29 20:51:26 +00:00 
			
		
		
		
	More Mac installer fixes for git-based workflow (#2839)
This commit is contained in:
		
							parent
							
								
									77e97ca9ff
								
							
						
					
					
						commit
						b364d9f9c6
					
				
					 1 changed files with 23 additions and 7 deletions
				
			
		|  | @ -13,7 +13,7 @@ | ||||||
| Python 2.6. | Python 2.6. | ||||||
| 
 | 
 | ||||||
| In addition to what is supplied with OS X 10.5+ and Xcode 3+, the script | In addition to what is supplied with OS X 10.5+ and Xcode 3+, the script | ||||||
| requires an installed version of git and a third-party version of | requires an installed third-party version of | ||||||
| Tcl/Tk 8.4 (for OS X 10.4 and 10.5 deployment targets) or Tcl/TK 8.5 | Tcl/Tk 8.4 (for OS X 10.4 and 10.5 deployment targets) or Tcl/TK 8.5 | ||||||
| (for 10.6 or later) installed in /Library/Frameworks.  When installed, | (for 10.6 or later) installed in /Library/Frameworks.  When installed, | ||||||
| the Python built by this script will attempt to dynamically link first to | the Python built by this script will attempt to dynamically link first to | ||||||
|  | @ -23,7 +23,7 @@ | ||||||
| 
 | 
 | ||||||
| 32-bit-only installer builds are still possible on OS X 10.4 with Xcode 2.5 | 32-bit-only installer builds are still possible on OS X 10.4 with Xcode 2.5 | ||||||
| and the installation of additional components, such as a newer Python | and the installation of additional components, such as a newer Python | ||||||
| (2.5 is needed for Python parser updates), git, and for the documentation | (2.5 is needed for Python parser updates) and for the documentation | ||||||
| build either svn (pre-3.4.1) or sphinx-build (3.4.1 and later). | build either svn (pre-3.4.1) or sphinx-build (3.4.1 and later). | ||||||
| 
 | 
 | ||||||
| Usage: see USAGE variable in the script. | Usage: see USAGE variable in the script. | ||||||
|  | @ -635,9 +635,8 @@ def checkEnvironment(): | ||||||
|         base_path = base_path + ':' + OLD_DEVELOPER_TOOLS |         base_path = base_path + ':' + OLD_DEVELOPER_TOOLS | ||||||
|     os.environ['PATH'] = base_path |     os.environ['PATH'] = base_path | ||||||
|     print("Setting default PATH: %s"%(os.environ['PATH'])) |     print("Setting default PATH: %s"%(os.environ['PATH'])) | ||||||
|     # Ensure ws have access to git and to sphinx-build. |     # Ensure we have access to sphinx-build. | ||||||
|     # You may have to create links in /usr/bin for them. |     # You may have to create a link in /usr/bin for it. | ||||||
|     runCommand('git --version') |  | ||||||
|     runCommand('sphinx-build --version') |     runCommand('sphinx-build --version') | ||||||
| 
 | 
 | ||||||
| def parseOptions(args=None): | def parseOptions(args=None): | ||||||
|  | @ -1142,8 +1141,25 @@ def buildPython(): | ||||||
|         shellQuote(WORKDIR)[1:-1], |         shellQuote(WORKDIR)[1:-1], | ||||||
|         shellQuote(WORKDIR)[1:-1])) |         shellQuote(WORKDIR)[1:-1])) | ||||||
| 
 | 
 | ||||||
|     print("Running make") |     # Look for environment value BUILDINSTALLER_BUILDPYTHON_MAKE_EXTRAS | ||||||
|     runCommand("make") |     # and, if defined, append its value to the make command.  This allows | ||||||
|  |     # us to pass in version control tags, like GITTAG, to a build from a | ||||||
|  |     # tarball rather than from a vcs checkout, thus eliminating the need | ||||||
|  |     # to have a working copy of the vcs program on the build machine. | ||||||
|  |     # | ||||||
|  |     # A typical use might be: | ||||||
|  |     #      export BUILDINSTALLER_BUILDPYTHON_MAKE_EXTRAS=" \ | ||||||
|  |     #                         GITVERSION='echo 123456789a' \ | ||||||
|  |     #                         GITTAG='echo v3.6.0' \ | ||||||
|  |     #                         GITBRANCH='echo 3.6'" | ||||||
|  | 
 | ||||||
|  |     make_extras = os.getenv("BUILDINSTALLER_BUILDPYTHON_MAKE_EXTRAS") | ||||||
|  |     if make_extras: | ||||||
|  |         make_cmd = "make " + make_extras | ||||||
|  |     else: | ||||||
|  |         make_cmd = "make" | ||||||
|  |     print("Running " + make_cmd) | ||||||
|  |     runCommand(make_cmd) | ||||||
| 
 | 
 | ||||||
|     print("Running make install") |     print("Running make install") | ||||||
|     runCommand("make install DESTDIR=%s"%( |     runCommand("make install DESTDIR=%s"%( | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ned Deily
						Ned Deily