summaryrefslogtreecommitdiffstats
path: root/Mac/scripts
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2004-12-31 11:23:20 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2004-12-31 11:23:20 (GMT)
commit8d784e353f7169eebb75c8c8677a1b9e5fe2c19b (patch)
tree9df7e00aeb71af617e4ebcf5c5fcb470c13ba2fd /Mac/scripts
parent01b53e1f068d20ce3a9dace58f45be82b7eb85c6 (diff)
downloadcpython-8d784e353f7169eebb75c8c8677a1b9e5fe2c19b.zip
cpython-8d784e353f7169eebb75c8c8677a1b9e5fe2c19b.tar.gz
cpython-8d784e353f7169eebb75c8c8677a1b9e5fe2c19b.tar.bz2
Backport:
Fix for #1091468: DESTROOTed frameworkinstalls fail. Added a --destroot option to various tools, and do the right thing when we're doing a destroot install.
Diffstat (limited to 'Mac/scripts')
-rw-r--r--Mac/scripts/BuildApplet.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/Mac/scripts/BuildApplet.py b/Mac/scripts/BuildApplet.py
index cb2aed8..756218f 100644
--- a/Mac/scripts/BuildApplet.py
+++ b/Mac/scripts/BuildApplet.py
@@ -53,8 +53,8 @@ def buildapplet():
buildtools.process(template, filename, dstfilename, 1)
else:
- SHORTOPTS = "o:r:ne:v?P"
- LONGOPTS=("output=", "resource=", "noargv", "extra=", "verbose", "help", "python=")
+ SHORTOPTS = "o:r:ne:v?PR"
+ LONGOPTS=("output=", "resource=", "noargv", "extra=", "verbose", "help", "python=", "destroot=")
try:
options, args = getopt.getopt(sys.argv[1:], SHORTOPTS, LONGOPTS)
except getopt.error:
@@ -67,6 +67,7 @@ def buildapplet():
raw = 0
extras = []
verbose = None
+ destroot = ''
for opt, arg in options:
if opt in ('-o', '--output'):
dstfilename = arg
@@ -87,6 +88,8 @@ def buildapplet():
verbose = Verbose()
elif opt in ('-?', '--help'):
usage()
+ elif opt in ('-d', '--destroot'):
+ destroot = arg
# On OS9 always be verbose
if sys.platform == 'mac' and not verbose:
verbose = 'default'
@@ -97,7 +100,8 @@ def buildapplet():
buildtools.update(template, filename, dstfilename)
else:
buildtools.process(template, filename, dstfilename, 1,
- rsrcname=rsrcfilename, others=extras, raw=raw, progress=verbose)
+ rsrcname=rsrcfilename, others=extras, raw=raw,
+ progress=verbose, destroot=destroot)
def usage():
print "BuildApplet creates an application from a Python source file"