(inPath, outPath)
| 1398 | os.chdir(curdir) |
| 1399 | |
| 1400 | def patchFile(inPath, outPath): |
| 1401 | data = fileContents(inPath) |
| 1402 | data = data.replace('$FULL_VERSION', getFullVersion()) |
| 1403 | data = data.replace('$VERSION', getVersion()) |
| 1404 | data = data.replace('$MACOSX_DEPLOYMENT_TARGET', ''.join((DEPTARGET, ' or later'))) |
| 1405 | data = data.replace('$ARCHITECTURES', ", ".join(universal_opts_map[UNIVERSALARCHS])) |
| 1406 | data = data.replace('$INSTALL_SIZE', installSize()) |
| 1407 | data = data.replace('$THIRD_PARTY_LIBS', "\\\n".join(THIRD_PARTY_LIBS)) |
| 1408 | |
| 1409 | # This one is not handy as a template variable |
| 1410 | data = data.replace('$PYTHONFRAMEWORKINSTALLDIR', '/Library/Frameworks/Python.framework') |
| 1411 | fp = open(outPath, 'w') |
| 1412 | fp.write(data) |
| 1413 | fp.close() |
| 1414 | |
| 1415 | def patchScript(inPath, outPath): |
| 1416 | major, minor = getVersionMajorMinor() |
no test coverage detected
searching dependent graphs…