nad0008-py3k-30 include PythonSystemFixes package in the OS X installer only if the deployment target includes OS X 10.3. APPLIES py3k, 3.0, trunk, 2.6 NOTE patch-nad0008-py3k-30.txt (this file) py3k, 3.0 patch-nad0008-trunk-26.txt trunk, 2.6 diff -r 5978c6d7ea0f Mac/BuildScript/build-installer.py --- Mac/BuildScript/build-installer.py Wed Apr 01 10:11:35 2009 -0500 +++ Mac/BuildScript/build-installer.py Wed Apr 01 10:17:17 2009 -0500 @@ -273,6 +273,7 @@ source="/empty-dir", required=False, selected='unselected', + deploymenttargetmax='10.3', ) ] @@ -887,6 +888,7 @@ def buildInstaller(): + global PKG_RECIPES # Zap all compiled files for dirpath, _, filenames in os.walk(os.path.join(WORKDIR, '_root')): @@ -902,6 +904,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)