From: Roger B. <ro...@ro...> - 2003-12-04 21:26:29
|
> VERY Strange... I didn't change that bit of code except to make it > wx.lib.pubsub isntead of wxPython.lib.pubsub. It was importing > Publication in the code I had downloaded from CVS. The word 'Publication' doesn't show up in any greps. It does import Publisher. I am very happy to change stuff from 'from wxPython.wx import*' to 'import wx'. All the new code has been written that way and I have been slowly changing over the old code. > Well, it's a good use of my time if it allows me to use the project on > my system, which I cannot use otherwise. ;-) You seem to be saying that standard wxPython 2.4 doesn't work. I was under the impression it does work fine on Macs. There may be some glitches, but I will happily fix those. One example is that multi-line text boxes on Windows default to about 10 lines in length, whereas on Linux they defautl to zero. There will be stuff like that and I will certainly fix it if I know about it! The preferred versions are Python 2.3(.x) and wxPython 2.4.2.4 on all platforms. (On Linux I actually ship with Python 2.2 but that is because it is what Redhat ships.) > I will see what I can do. Theoretically, if everything is bundled > right, you may even be able to take a given package and just drop the > new .py modules into it to do an update. Maybe. I'm not sure. I'll get > back to you on it. The bundling isn't done that way. What happens is that a copy of interpretter is taken, and all the .py files it imports are compiled to .pyc/.pyo and placed in a zip and appended to the Python exe. The Python exe is frigged to do an import from the zip file. Any shared libraries are placed alongside the Python executable and the import process suitably frigged to find them. This makes everything standalone and independent of anything the user may already have installed on their machine. Here is what the Windows installation looks like: 09/09/2003 03:18 PM 437 bitpim.css 12/02/2003 02:47 PM 887,712 bitpim.exe 08/20/2003 01:26 PM 655 bitpim.exe.manifest 10/01/2003 12:40 PM 61,440 calendarc.pyd 10/02/2003 08:03 PM 45,116 datetime.pyd 10/01/2003 12:40 PM 286,720 gizmosc.pyd 10/01/2003 12:40 PM 299,008 gridc.pyd 10/01/2003 12:40 PM 36,864 helpc.pyd 10/01/2003 12:40 PM 196,608 htmlc.pyd 10/02/2003 08:03 PM 45,114 parser.pyd 10/02/2003 08:02 PM 974,908 python23.dll 09/02/2003 11:01 AM 86,084 PyWinTypes23.dll 12/02/2003 02:47 PM <DIR> resources 10/02/2003 08:04 PM 20,538 select.pyd 09/02/2003 11:01 AM 61,497 win32api.pyd 09/02/2003 11:01 AM 28,731 win32event.pyd 09/02/2003 11:01 AM 73,786 win32file.pyd 10/01/2003 12:40 PM 2,240,512 wxc.pyd 10/01/2003 10:43 AM 3,239,936 wxmsw24h.dll 10/02/2003 08:04 PM 61,496 zlib.pyd 10/02/2003 08:02 PM 49,211 _socket.pyd 10/02/2003 08:03 PM 57,400 _sre.pyd 10/02/2003 08:03 PM 495,616 _ssl.pyd 10/02/2003 08:04 PM 36,864 _winreg.pyd This is what the Linux installation looks like: -r-xr-xr-x 1 root root 21083 Aug 30 2002 binascii.so -rw-r--r-- 1 root root 432 Sep 10 10:33 bitpim.css -rwxr-xr-x 1 root root 3376339 Sep 10 10:33 bp -r-xr-xr-x 1 root root 21857 Aug 30 2002 cStringIO.so -r-xr-xr-x 1 root root 11875 Aug 30 2002 errnomodule.so -r-xr-xr-x 1 root root 16192 Aug 30 2002 fcntlmodule.so -rwxr-xr-x 1 root root 7041941 Jun 17 16:10 libwx_gtkd-2.4.so -r-xr-xr-x 1 root root 16640 Aug 30 2002 _localemodule.so -r-xr-xr-x 1 root root 16985 Aug 30 2002 mathmodule.so -r-xr-xr-x 1 root root 20997 Aug 30 2002 operator.so -rwxr-xr-x 1 root root 115593 Aug 30 2002 pcre.so -r-xr-xr-x 1 root root 9656 Aug 30 2002 pwdmodule.so -r-xr-xr-x 1 root root 22615 Aug 30 2002 readline.so drwxr-xr-x 2 root root 4096 Sep 10 10:50 resources -r-xr-xr-x 1 root root 17193 Aug 30 2002 selectmodule.so -rwxr-xr-x 1 root root 67015 Aug 30 2002 strop.so -r-xr-xr-x 1 root root 26886 Aug 30 2002 structmodule.so -r-xr-xr-x 1 root root 20064 Aug 30 2002 termios.so -r-xr-xr-x 1 root root 19939 Aug 30 2002 timemodule.so -rwxr-xr-x 1 root root 241542 Sep 10 10:33 wxPython.calendarc.so -rwxr-xr-x 1 root root 1443747 Sep 10 10:33 wxPython.gizmosc.so -rwxr-xr-x 1 root root 820765 Sep 10 10:33 wxPython.gridc.so -rwxr-xr-x 1 root root 174711 Sep 10 10:33 wxPython.helpc.so -rwxr-xr-x 1 root root 608397 Sep 10 10:33 wxPython.htmlc.so -rwxr-xr-x 1 root root 6277757 Sep 10 10:33 wxPython.wxc.so -r-xr-xr-x 1 root root 21882 Aug 30 2002 zlibmodule.so On Windows I use py2exe to build this. On Linux I use cxFreeze. The cxFreeze author was trying to port it to Mac, but doesn't own one himself and so was using the SourceForge Mac servers which don't have very good availability. For what to do on Macs, see this message: http://mail.python.org/pipermail/pythonmac-sig/2003-November/009246.html Roger |