@@ -587,8 +587,8 @@ def checkEnvironment():
587
587
Check that we're running on a supported system.
588
588
"""
589
589
590
- if sys .version_info [0 :2 ] < (2 , 5 ):
591
- fatal ("This script must be run with Python 2.5 (or later)" )
590
+ if sys .version_info [0 :2 ] < (2 , 7 ):
591
+ fatal ("This script must be run with Python 2.7 (or later)" )
592
592
593
593
if platform .system () != 'Darwin' :
594
594
fatal ("This script should be run on a macOS 10.5 (or later) system" )
@@ -656,9 +656,6 @@ def checkEnvironment():
656
656
base_path = base_path + ':' + OLD_DEVELOPER_TOOLS
657
657
os .environ ['PATH' ] = base_path
658
658
print ("Setting default PATH: %s" % (os .environ ['PATH' ]))
659
- # Ensure we have access to sphinx-build.
660
- # You may have to create a link in /usr/bin for it.
661
- runCommand ('sphinx-build --version' )
662
659
663
660
def parseOptions (args = None ):
664
661
"""
@@ -1618,8 +1615,17 @@ def buildDMG():
1618
1615
if os .path .exists (outdir ):
1619
1616
shutil .rmtree (outdir )
1620
1617
1618
+ # We used to use the deployment target as the last characters of the
1619
+ # installer file name. With the introduction of weaklinked installer
1620
+ # variants, we may have two variants with the same file name, i.e.
1621
+ # both ending in '10.9'. To avoid this, we now use the major/minor
1622
+ # version numbers of the macOS version we are building on, i.e.
1623
+ # '10.9' as before for 10.9+ variant, '11.0' for universal2 11.0-.
1624
+ # it's not ideal but should cause the least disruption to packaging
1625
+ # workflows.
1626
+ build_system_version = '.' .join (platform .mac_ver ()[0 ].split ('.' )[0 :2 ])
1621
1627
imagepath = os .path .join (outdir ,
1622
- 'python-%s-macosx%s' % (getFullVersion (),DEPTARGET ))
1628
+ 'python-%s-macosx%s' % (getFullVersion (),build_system_version ))
1623
1629
if INCLUDE_TIMESTAMP :
1624
1630
imagepath = imagepath + '-%04d-%02d-%02d' % (time .localtime ()[:3 ])
1625
1631
imagepath = imagepath + '.dmg'
0 commit comments