suggestions for mod_python
Sorry, I'm a newbie to distutils and the sig, I need some advice. I am trying to adopt mod_python to distutils. Here is my dilemma: The end result of the mod_python compile is usually a file called mod_python.so. Mod_python.so is NOT a Python module, it's an Apache module. (There is also a Python package to go along with it, but that's irrelevant here I think). Currently, at ./configure time I peek in Modules/Makefile to find out the libs against which Python was linked (which breaks in python 2.1, btw). The actual mod_python.so is built using apxs. Apxs is a tool that comes with Apache to build Apache modules. It knows what compile/linker args the module will need as far as Apache is concerned, and it takes all necessary libs for Python as an argument via a Makefile built by autoconf. I'm thinking that the right way to go is use some fucntionality of distutils that can just list me the necessay libs during ./configure and stick with useing apxs, since the end result isn't a Python but an Apache module... So far I haven't been able to figure out how to get that info (but then I've only spent a day looking at distutils...) Any advice/suggestions would be very much appreciated, Grisha
It sounds to me like you'd be better off using both: apxs for the apache module and distutils for the python module. Forcing either one to do what the other already does is likely to be uncomfortable. mwa On Fri, 8 Jun 2001, Gregory (Grisha) Trubetskoy wrote:
Sorry, I'm a newbie to distutils and the sig, I need some advice.
I am trying to adopt mod_python to distutils. Here is my dilemma:
The end result of the mod_python compile is usually a file called mod_python.so. Mod_python.so is NOT a Python module, it's an Apache module. (There is also a Python package to go along with it, but that's irrelevant here I think).
Currently, at ./configure time I peek in Modules/Makefile to find out the libs against which Python was linked (which breaks in python 2.1, btw). The actual mod_python.so is built using apxs. Apxs is a tool that comes with Apache to build Apache modules. It knows what compile/linker args the module will need as far as Apache is concerned, and it takes all necessary libs for Python as an argument via a Makefile built by autoconf.
I'm thinking that the right way to go is use some fucntionality of distutils that can just list me the necessay libs during ./configure and stick with useing apxs, since the end result isn't a Python but an Apache module... So far I haven't been able to figure out how to get that info (but then I've only spent a day looking at distutils...)
Any advice/suggestions would be very much appreciated,
Grisha
_______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
-- Mark W. Alexander slash@dotnetslash.net
The trick though is that mod_python.so at the same time needs to have all Python info as well, because even though it gets loaded by apache, it also has Python module functionality in it.... I guess the real question is: Do distutils provide a uniform way of retreiving compile-time arguments, or is going through /usr/local/lib/python2.1/config/Makefile (or whatever) still the way to go with Python 2.1? Grisha On Fri, 8 Jun 2001, Mark W. Alexander wrote:
It sounds to me like you'd be better off using both: apxs for the apache module and distutils for the python module. Forcing either one to do what the other already does is likely to be uncomfortable.
mwa
On Fri, 8 Jun 2001, Gregory (Grisha) Trubetskoy wrote:
Sorry, I'm a newbie to distutils and the sig, I need some advice.
I am trying to adopt mod_python to distutils. Here is my dilemma:
The end result of the mod_python compile is usually a file called mod_python.so. Mod_python.so is NOT a Python module, it's an Apache module. (There is also a Python package to go along with it, but that's irrelevant here I think).
Currently, at ./configure time I peek in Modules/Makefile to find out the libs against which Python was linked (which breaks in python 2.1, btw). The actual mod_python.so is built using apxs. Apxs is a tool that comes with Apache to build Apache modules. It knows what compile/linker args the module will need as far as Apache is concerned, and it takes all necessary libs for Python as an argument via a Makefile built by autoconf.
I'm thinking that the right way to go is use some fucntionality of distutils that can just list me the necessay libs during ./configure and stick with useing apxs, since the end result isn't a Python but an Apache module... So far I haven't been able to figure out how to get that info (but then I've only spent a day looking at distutils...)
Any advice/suggestions would be very much appreciated,
Grisha
_______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig
-- Mark W. Alexander slash@dotnetslash.net
participants (2)
-
Gregory (Grisha) Trubetskoy
-
Mark W. Alexander