diff options
author | Georg Brandl <georg@python.org> | 2007-09-03 07:27:49 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-09-03 07:27:49 (GMT) |
commit | c76473d887c446dd9693f6549a59bff53b4d5ef6 (patch) | |
tree | 023b4d4cf56a080655082277f606efacaa0bcf99 /Mac | |
parent | e4ac7504c9fb005d81c710bff40777dc170694a8 (diff) | |
download | cpython-c76473d887c446dd9693f6549a59bff53b4d5ef6.zip cpython-c76473d887c446dd9693f6549a59bff53b4d5ef6.tar.gz cpython-c76473d887c446dd9693f6549a59bff53b4d5ef6.tar.bz2 |
Fix Mac build, patch #1091 by Humberto Diogenes.
Diffstat (limited to 'Mac')
-rw-r--r-- | Mac/IDLE/Makefile.in | 2 | ||||
-rw-r--r-- | Mac/PythonLauncher/Makefile.in | 2 | ||||
-rw-r--r-- | Mac/Tools/fixapplepython23.py | 4 | ||||
-rw-r--r-- | Mac/scripts/cachersrc.py | 3 |
4 files changed, 6 insertions, 5 deletions
diff --git a/Mac/IDLE/Makefile.in b/Mac/IDLE/Makefile.in index 2f63892..da6922e 100644 --- a/Mac/IDLE/Makefile.in +++ b/Mac/IDLE/Makefile.in @@ -55,5 +55,5 @@ IDLE.app: \ Info.plist: $(srcdir)/Info.plist.in - sed 's/%VERSION%/'"`$(RUNSHARED) $(BUILDPYTHON) -c 'import platform; print platform.python_version()'`"'/g' < $(srcdir)/Info.plist.in > Info.plist + sed 's/%VERSION%/'"`$(RUNSHARED) $(BUILDPYTHON) -c 'import platform; print(platform.python_version())'`"'/g' < $(srcdir)/Info.plist.in > Info.plist diff --git a/Mac/PythonLauncher/Makefile.in b/Mac/PythonLauncher/Makefile.in index b4b126c..f27e21e 100644 --- a/Mac/PythonLauncher/Makefile.in +++ b/Mac/PythonLauncher/Makefile.in @@ -78,4 +78,4 @@ Python\ Launcher: $(OBJECTS) $(CC) $(LDFLAGS) -o "Python Launcher" $(OBJECTS) -framework AppKit -framework Carbon Info.plist: $(srcdir)/Info.plist.in - sed 's/%VERSION%/'"`$(RUNSHARED) $(BUILDPYTHON) -c 'import platform; print platform.python_version()'`"'/g' < $(srcdir)/Info.plist.in > Info.plist + sed 's/%VERSION%/'"`$(RUNSHARED) $(BUILDPYTHON) -c 'import platform; print(platform.python_version())'`"'/g' < $(srcdir)/Info.plist.in > Info.plist diff --git a/Mac/Tools/fixapplepython23.py b/Mac/Tools/fixapplepython23.py index 01a09b5..b0916e8 100644 --- a/Mac/Tools/fixapplepython23.py +++ b/Mac/Tools/fixapplepython23.py @@ -80,11 +80,11 @@ def makescript(filename, compiler): """Create a wrapper script for a compiler""" dirname = os.path.split(filename)[0] if not os.access(dirname, os.X_OK): - os.mkdir(dirname, 0755) + os.mkdir(dirname, 0o755) fp = open(filename, 'w') fp.write(SCRIPT % compiler) fp.close() - os.chmod(filename, 0755) + os.chmod(filename, 0o755) print('fixapplepython23: Created', filename) def main(): diff --git a/Mac/scripts/cachersrc.py b/Mac/scripts/cachersrc.py index e2eed8b..e0e8415 100644 --- a/Mac/scripts/cachersrc.py +++ b/Mac/scripts/cachersrc.py @@ -12,7 +12,8 @@ import getopt class NoArgsError(Exception): pass -def handler((verbose, force), dirname, fnames): +def handler(arg1, dirname, fnames): + verbose, force = arg1 for fn in fnames: if fn[-5:] == '.rsrc' and fn[-13:] != '.rsrc.df.rsrc': if force: |