pyGTK for Darwin/MacOSX (another case-blind gotcha!)
Steven D. Majewski
sdm7g at virginia.edu
Fri Oct 13 13:15:57 EDT 2000
More information about the Python-list mailing list
Fri Oct 13 13:15:57 EDT 2000
- Previous message (by thread): recent review of scripting lngs?
- Next message (by thread): [pygtk] pyGTK for Darwin/MacOSX (another case-blind gotcha!)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I managed to get pygtk working on MacOSX PB under X11 (and it should work under the open-source Darwin install) glib & gtk needed to use -traditional-cpp to build. The final link of pygtk needed some manual coaxing - it took the list of libraries from the Makefile command and combined it with the link switches that was working for the build of the other Python shared modules, and got: cc -bundle -undefined warning gtkmodule.o -L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -lgmodule -lgthread -lglib -lXext -lX11 .libs/lib_gtkmodule.a -o _gtkmodule.so HFS+ file systems are case preserving but case blind on comparisons, os it can't distinguish between "GTK.py" and "gtk.py" . Only one of them (GTK.py) ended up in the distribution directory. I extracted the missing one into another directory and concatenated them both into the same file. This seemed to work well enough to get most of the examples to work. ( "import GTK" and "import gtk" both work but resolve to the same module. This may not work in the future. ) Files that differ only by case are a problem on other systems (MS-windows and Classis MacOS) - so I would suggest that the permanent solution should be that one of those files be renamed. ( And that this sort of nameing scheme ought to be discouraged as non-portable. ) ---| Steven D. Majewski (804-982-0831) <sdm7g at Virginia.EDU> |--- ---| Department of Molecular Physiology and Biological Physics |--- ---| University of Virginia Health Sciences Center |--- ---| P.O. Box 10011 Charlottesville, VA 22906-0011 |--- "All operating systems want to be unix, All programming languages want to be lisp."
- Previous message (by thread): recent review of scripting lngs?
- Next message (by thread): [pygtk] pyGTK for Darwin/MacOSX (another case-blind gotcha!)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list