diff options
author | Ronald Oussoren <ronaldoussoren@mac.com> | 2008-12-30 12:59:02 (GMT) |
---|---|---|
committer | Ronald Oussoren <ronaldoussoren@mac.com> | 2008-12-30 12:59:02 (GMT) |
commit | 216001591541571820cdbf31645fa44ee3fc8f4f (patch) | |
tree | 9ecec5c36ae3afbb01f30582769f62c51f23216c /Mac/Tools/fixapplepython23.py | |
parent | a17775fab4fe6c9b2bd1ad539b6b6f072fceeb12 (diff) | |
download | cpython-216001591541571820cdbf31645fa44ee3fc8f4f.zip cpython-216001591541571820cdbf31645fa44ee3fc8f4f.tar.gz cpython-216001591541571820cdbf31645fa44ee3fc8f4f.tar.bz2 |
Make it possible to install a framework build of Python 3.x on OSX.
This the build machinery on OSX to re-enable building (and installing)
PythonLauncher.app and IDLE.app.
This needs ports of fixes to Lib/distutils/util.py and Include/pymacconfig.h
to be fully functiontional, to be fully functional.
I also have a patch for Makefile.pre.in that I'll post on bugs.python.org
for review.
Diffstat (limited to 'Mac/Tools/fixapplepython23.py')
-rw-r--r-- | Mac/Tools/fixapplepython23.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Mac/Tools/fixapplepython23.py b/Mac/Tools/fixapplepython23.py index a6db699..18b95b3 100644 --- a/Mac/Tools/fixapplepython23.py +++ b/Mac/Tools/fixapplepython23.py @@ -14,7 +14,7 @@ status also when nothing needs to be fixed. """ import sys import os -import gestalt as _gestalt +import platform MAKEFILE='/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/config/Makefile' CHANGES=(( @@ -99,11 +99,12 @@ def main(): print("fixapplypython23: no fix is needed on MacOSX on Intel") sys.exit(0) - if gestalt.gestalt('sysv') < 0x1030: + osver = platform.mac_ver() + if osver != '10.3' and os.ver < '10.3.': print('fixapplepython23: no fix needed on MacOSX < 10.3') sys.exit(0) - if gestalt.gestalt('sysv') >= 0x1040: + if osver >= '10.4': print('fixapplepython23: no fix needed on MacOSX >= 10.4') sys.exit(0) |