Mercurial > cpython-lru_cache-weakref
diff Mac/Tools/fixapplepython23.py @ 38752:5a994d26a3cf legacy-trunk
- 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
| author | Ronald Oussoren <ronaldoussoren@mac.com> |
|---|---|
| date | Sun, 11 Jun 2006 20:24:45 +0000 |
| parents | 2af5757de7b1 |
| children | cedea9e23a95 |
line wrap: on
line diff
--- a/Mac/Tools/fixapplepython23.py Sun Jun 11 20:23:29 2006 +0000 +++ b/Mac/Tools/fixapplepython23.py Sun Jun 11 20:24:45 2006 +0000 @@ -94,9 +94,19 @@ 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'
