Jean-Claude Wippler <[EMAIL PROTECTED]> writes:

> I have a question for Python experts, w.r.t. distutils:
>
> I'd like to try and get setup.py working on its own.  Here's what I
> get right now (cvs HEAD, build dir wiped):
>
> $ python setup.py build
> running build
> running build_py
> creating ../builds/lib.linux-i686-2.3
> copying metakit.py -> ../builds/lib.linux-i686-2.3
> running build_ext
> running config
> gcc -E -I/usr/include/python2.3 -o _configtest.i _configtest.c
> removing: _configtest.c _configtest.i
> building 'Mk4py' extension
> creating ../builds/temp.linux-i686-2.3
> creating ../builds/temp.linux-i686-2.3/scxx
> g++ -fno-strict-aliasing -DNDEBUG -fPIC -DHAVE_UNICODEOBJECT_H=1
> -Iscxx -I../include -I/usr/include/python2.3 -c PyView.cpp -o
> ../builds/temp.linux-i686-2.3/PyView.o
> [...]
> g++ -pthread -shared ../builds/temp.linux-i686-2.3/PyProperty.o
> ../builds/temp.linux-i686-2.3/PyRowRef.o
> ../builds/temp.linux-i686-2.3/PyStorage.o
> ../builds/temp.linux-i686-2.3/PyView.o
> ../builds/temp.linux-i686-2.3/scxx/PWOImp.o ../builds/column.o
> ../builds/custom.o ../builds/derived.o ../builds/fileio.o
> ../builds/field.o ../builds/format.o ../builds/handler.o
> ../builds/persist.o ../builds/remap.o ../builds/std.o
> ../builds/store.o ../builds/string.o ../builds/table.o
> ../builds/univ.o ../builds/view.o ../builds/viewx.o -lstdc++ -o
> ../builds/lib.linux-i686-2.3/Mk4py.so
> g++: ../builds/column.o: No such file or directory
> [...]
> g++: ../builds/viewx.o: No such file or directory
> error: command 'g++' failed with exit status 1
> $
>
> Is there a simple way to resolve this?  The workaround is to first do:
>       cd ../builds; ../unix/configure; make

Attached is a setup.py which calls configure itself and uses python
distutils to compile the source files.

Attachment: setup.py
Description: Binary data

-- 
brainbot technologies ag
boppstrasse 64 . 55118 mainz . germany
fon +49 6131 211639-1 . fax +49 6131 211639-2
http://brainbot.com/  mailto:[EMAIL PROTECTED]
_____________________________________________
Metakit mailing list  -  [EMAIL PROTECTED]
http://www.equi4.com/mailman/listinfo/metakit

Reply via email to