== sm == Skip Montanaro [EMAIL PROTECTED] writes:
What I ended up doing is building the swig/python modules with
automake.
sm ...
The missing link I had to fix with automake/python module
support was that python wouldn't load uninstalled automake
shared objects as
What I ended up doing is building the swig/python modules with
automake.
...
The missing link I had to fix with automake/python module support was
that python wouldn't load uninstalled automake shared objects as
python extensions. The solution was to write a
== cw == christoph wiedemann [EMAIL PROTECTED] writes:
cw I thought of using the auto* tools for building python
cw extensions a few months ago now, but since i was using swig, i
cw did not know how to integrate the swig meta files (*_wrap.c)
cw into the auto* stuff - the way to
skip For example, if I have this chain of dependencies:
skip
skip build/lib.linux-i686-2.3/array.so
skip
skipdepends on
skip
skip build/temp.linux-i686-2.3/arraymodule.o
skip
skipwhich depends on
skip
skip Modules/arraymodule.c
skip
skip (the locations of the
skip ... and then diddle some bits in arraymodule.c, neither
skip .../arraymodule.o nor /array.so get rebuilt the next time I
skip run make.
christoph On my system (linux 2.4, python 2.1.1), the dependency stuff
christoph works well. In fact in the above situation, one
skip Sure, if all you want to distribute is a few extension modules. What
about
skip if you want to distribute the library they wrap as well? That's where the
skip auto*/libtool gang comes in (I hope - it's difficult enough for me to
figure
skip out how this works that I'm still pondering the
Why don't you use the distutils module coming with python ? They provide a
platform-independent building/installing mechanism of Python modules and
c-extensions.
Regards,
Christoph
christoph Why don't you use the distutils module coming with python ?
christoph They provide a platform-independent building/installing
christoph mechanism of Python modules and c-extensions.
This is what my fellow Pythonistas suggest and is the workaround I'm
currently using. My
Skip == Skip Montanaro [EMAIL PROTECTED] writes:
Skip I'm trying to figure out how to compile and link a Python
Skip extension module.
In addition to what Alexandre said on this subject, I'd just like to
point out that one of Automake's goals is to provide useful
integration with other free
Tom However we rely in large part on interested volunteers to implement
Tom this support. We'd definitely be interested in code that would
Tom help make building Python extension modules easier.
Tom,
You're preaching to the choir. ;-) It all (the autoconf, automake, libtool
trio)
I'm trying to figure out how to compile and link a Python extension module.
In my generated aclocal.m4 file I saw this comment:
# Adds support for distributing Python modules and packages. To
# install modules, copy them to $(pythondir), using the python_PYTHON
# automake variable.
11 matches
Mail list logo