mirror of
https://github.com/python/cpython.git
synced 2025-09-16 21:56:14 +00:00
- Change fixapplepython23.py to ensure that it will run with /usr/bin/python
on intel macs. - Fix some minor problems in the installer for OSX
This commit is contained in:
parent
4fbb080bc1
commit
c55555400e
2 changed files with 22 additions and 5 deletions
|
@ -94,9 +94,19 @@ def main():
|
|||
else:
|
||||
do_apply = True
|
||||
# First check OS version
|
||||
if sys.byteorder == 'little':
|
||||
# All intel macs are fine
|
||||
print "fixapplypython23: no fix is needed on MacOSX on Intel"
|
||||
sys.exit(0)
|
||||
|
||||
if gestalt.gestalt('sysv') < 0x1030:
|
||||
print 'fixapplepython23: no fix needed on MacOSX < 10.3'
|
||||
sys.exit(0)
|
||||
|
||||
if gestalt.gestalt('sysv') >= 0x1040:
|
||||
print 'fixapplepython23: no fix needed on MacOSX >= 10.4'
|
||||
sys.exit(0)
|
||||
|
||||
# Test that a framework Python is indeed installed
|
||||
if not os.path.exists(MAKEFILE):
|
||||
print 'fixapplepython23: Python framework does not appear to be installed (?), nothing fixed'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue