Bug #740398: Optik on Python 2.2.1
Greg Ward <[email protected]> Tue, 17 Jun 2003 21:22:32 -0400
| Newsgroups | gmane.comp.python.optik.user |
|---|---|
| Message-ID | <[email protected]> |
Hi all -- I've received a bug report that Optik's setup script crashes
under Python 2.2.1 (see
https://sourceforge.net/tracker/index.php?func=detail&aid=740398&group_id=38019&atid=421097).
This is a pretty clear Distutils bug that wasn't fixed until Python
2.2.2; I'm pretty sure this patch to Optik:
--- setup.py 8 May 2003 01:21:28 -0000 1.16
+++ setup.py 18 Jun 2003 01:19:00 -0000
@@ -1,6 +1,6 @@
#!/usr/local/bin/python
-import sys
+import sys, os
from distutils.core import setup
if sys.hexversion >= 0x02030000:
@@ -20,6 +20,6 @@
options to your scripts with very little overhead.""",
license = "BSD",
- package_dir = { "optik" : "lib", "": "" },
+ package_dir = { "optik" : "lib", "": os.curdir },
packages = ["optik", ""],
)
will successfully dodge the bug. However, I don't have a Python 2.2.1
build handy. If you do, can you 1) try "python setup.py install" with
Optik 1.4.1 (or current CVS) to verify that it crashes, and 2) apply the
above patch and verify that it fixes the problem? I'm especially
interested to hear from you if you're using Windows or Mac OS; I can
test it myself on Linux.
Thanks --
Greg
--
Greg Ward <[email protected]> http://www.gerg.ca/
Moderation is for monks.
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php