Humberto Diogenes added the comment:
One more patch, for:
1. Writing str to binary file;
2. Using string exceptions.
Traceback for #2:
/usr/bin/install -c -s ../python.exe
"/Library/Frameworks/Python.framework/Versions/3.0/Resources/Python.app/
Contents/MacOS/Python"
DYLD_FRAMEWORK_PATH=/Users/humberto/src/open/py3k: ../python.exe
./scripts/BuildApplet.py \
--destroot "" \
--python
/Library/Frameworks/Python.framework/Versions/3.0/Resources/Python.app/C
ontents/MacOS/Python \
--output "/Applications/MacPython 3.0/Build Applet.app" \
./scripts/BuildApplet.py
./scripts/BuildApplet.py:16: DeprecationWarning: the buildtools module
is deprecated
import buildtools
Traceback (most recent call last):
File "./scripts/BuildApplet.py", line 149, in <module>
main()
File "./scripts/BuildApplet.py", line 34, in main
except buildtools.BuildError as detail:
TypeError: catching classes that do not inherit from BaseException is
not allowed
make[1]: *** [install_BuildApplet] Error 1
make: *** [frameworkinstallapps] Error 2
After applying those two attached patches, I was able to succesfully run
"make altinstall" (not without some other warnings, though).
__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1091>
__________________________________
Index: Lib/plat-mac/buildtools.py
===================================================================
--- Lib/plat-mac/buildtools.py (revision 57912)
+++ Lib/plat-mac/buildtools.py (working copy)
@@ -17,7 +17,8 @@
warnings.warn("the buildtools module is deprecated", DeprecationWarning, 2)
-BuildError = "BuildError"
+class BuildError(BaseException):
+ pass
# .pyc file (and 'PYC ' resource magic number)
MAGIC = imp.get_magic()
Index: Lib/plat-mac/bundlebuilder.py
===================================================================
--- Lib/plat-mac/bundlebuilder.py (revision 57912)
+++ Lib/plat-mac/bundlebuilder.py (working copy)
@@ -180,8 +180,9 @@
assert len(self.type) == len(self.creator) == 4, \
"type and creator must be 4-byte strings."
pkginfo = pathjoin(contents, "PkgInfo")
+ data = bytes(self.type + self.creator, encoding='ascii')
f = open(pkginfo, "wb")
- f.write(self.type + self.creator)
+ f.write(data)
f.close()
#
# Write Contents/Info.plist
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com