Previously, Alain Bonnefoy wrote in qdn.public.porting:
Igor Kovalenko a écrit :
Jutta Steinhoff wrote:
Alain Bonnefoy wrote:
Jutta Steinhoff a écrit :
Alain Bonnefoy wrote:
the Python 2.0 package from TUCOWS seems to have a problem because the
dyn-load directory which would contain libpython2.0.so has a 0 size.
Does anybody know who made the package?
NO,
but if you want a working version (and sources) incl. TCL/TK and
IDLE (Python IDE) have a look to Armin’s port:
http://sourceforge.net/projects/pyqnx/
Jutta
Same!!!
configure file is not properly written to create the shared library!
Other idea?
Question to all:
Has anyone intention to realize the DLL version of Python 2.1 ???
We have actually no time for it…
I might do that if people send me postcards in advance, lol > 
Good luck !!!
I tried, and I stopped quickly!
2.0 is quite simple. some declarations like local externs are not well understood
by our gcc version, but nothing very complex.
I still have some problems with gcc flags to generate a good libpython2.0.so. If
you could help me ;o).
It probably SEGVs for you because code was not compiled with -fpic. Here is quote from Python FAQ:
3.30. Why is the Python interpreter not built as a shared library?
(This is a Unix question; on Mac and Windows, it is a shared library.)
It’s just a nightmare to get this to work on all different platforms.
Shared library portability is a pain. And yes, I know about GNU libtool
– but it requires me to use its conventions for filenames etc, and it
would require a complete and utter rewrite of all the makefile and
config tools I’m currently using.
In practice, few applications embed Python – it’s much more common to
have Python extensions, which already are shared libraries. Also,
serious embedders often want total control over which Python version and
configuration they use so they wouldn’t want to use a standard shared
library anyway. So while the motivation of saving space when lots of
apps embed Python is nice in theory, I doubt that it will save much in
practice. (Hence the low priority I give to making a shared library.)
For Linux systems, the simplest method of producing libpython1.5.so
seems to be (originally from the Minotaur project web page,
http://mini.net/pub/ts2/minotaur.html):
make distclean
./configure
make OPT=“-fpic -O2”
mkdir .extract
(cd .extract; ar xv ../libpython1.5.a)
gcc -shared -o libpython1.5.so .extract/*.o
rm -rf .extract
I tried that with 2.1 and it appears to produce .so. But since I’m not Python fan I did not bother checking if it really works. Let me know if it still crashes…
I think Python maintainers are ought to drop their lame excuses toward libtool though.