nad0008-trunk-26 include PythonSystemFixes package in the OS X installer only if deployment target includes OS X 10.3. APPLIES py3k, 3.0, trunk, 2.6 NOTE patch-nad0008-py3k-30.txt py3k, 3.0 patch-nad0008-trunk-26.txt (this file) trunk, 2.6 diff -r 94beb7e058cf Mac/BuildScript/build-installer.py --- Mac/BuildScript/build-installer.py Wed Apr 01 10:28:57 2009 -0500 +++ Mac/BuildScript/build-installer.py Wed Apr 01 10:30:25 2009 -0500 @@ -278,6 +278,7 @@ topdir="/Library/Frameworks/Python.framework", source="/empty-dir", required=False, + deploymenttargetmax="10.3", ) ] @@ -885,6 +886,7 @@ def buildInstaller(): + global PKG_RECIPES # Zap all compiled files for dirpath, _, filenames in os.walk(os.path.join(WORKDIR, '_root')): @@ -900,6 +902,10 @@ pkgroot = os.path.join(outdir, 'Python.mpkg', 'Contents') pkgcontents = os.path.join(pkgroot, 'Packages') os.makedirs(pkgcontents) + # discard packages which are not appropriate for the targeted OS levels + PKG_RECIPES = [recipe for recipe in PKG_RECIPES + if "deploymenttargetmax" not in recipe + or float(DEPTARGET) <= float(recipe["deploymenttargetmax"]) ] for recipe in PKG_RECIPES: packageFromRecipe(pkgcontents, recipe)