wrappers for lots of Mac OS X API's.
""",
postflight="scripts/postflight.framework",
+ selected='selected',
),
dict(
name="PythonApplications",
It also installs a number of examples and demos.
""",
required=False,
+ selected='selected',
),
dict(
name="PythonUnixTools",
is not necessary to use MacPython.
""",
required=False,
+ selected='unselected',
),
dict(
name="PythonDocumentation",
""",
postflight="scripts/postflight.documentation",
required=False,
+ selected='selected',
),
dict(
name="PythonProfileChanges",
topdir="/Library/Frameworks/Python.framework",
source="/empty-dir",
required=False,
+ selected='unselected',
),
dict(
name="PythonSystemFixes",
topdir="/Library/Frameworks/Python.framework",
source="/empty-dir",
required=False,
+ selected='unselected',
)
]
frmDir = os.path.join(rootDir, 'Library', 'Frameworks', 'Python.framework')
gid = grp.getgrnam('admin').gr_gid
+
+
for dirpath, dirnames, filenames in os.walk(frmDir):
for dn in dirnames:
os.chmod(os.path.join(dirpath, dn), 0775)
os.chdir(curdir)
+ # Remove the 'Current' link, that way we don't accidently mess with an already installed
+ # version of python
+ os.unlink(os.path.join(rootDir, 'Library', 'Frameworks', 'Python.framework', 'Versions', 'Current'))
+
+
def patchFile(inPath, outPath):
IFPkgFlagPackageList=[
dict(
IFPkgFlagPackageLocation='%s-%s.pkg'%(item['name'], getVersion()),
- IFPkgFlagPackageSelection='selected'
+ IFPkgFlagPackageSelection=item['selected'],
)
for item in PKG_RECIPES
],