Summary: Running "setup.py install" succeeds (and the installed rpy2
package works in python), however on rpm-based platforms, it is
convenient to build an RPM, then use that to install on multiple
machines.  setup.py usually works with the command "bdist_rpm" to create
an RPM.  

There is something incorrect with the setup.py or project setup such
that bdist_rpm fails.  Could someone familiar with the building of the
project and setup.py take a look or suggest what specific kind of change
would fix the setup such that bdist_rpm successfully creates an RPM?

Example:

"setup.py bdist_rpm" fails on openSUSE Linux 11.1 with a compile error,
which appears to be related to the include paths or the staging of
source files:


> python setup.py bdist_rpm
...
...
running build_ext
building 'rpy2.rinterface.rinterface' extension
creating build/temp.linux-i686-2.6
creating build/temp.linux-i686-2.6/rpy
creating build/temp.linux-i686-2.6/rpy/rinterface
gcc -pthread -DNDEBUG -march=i586 -mtune=i686 -fmessage-length=0 -O2
-Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
-fasynchronous-unwind-tables -g -O2 -g -m32 -march=i586 -mtune=i686
-fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables
-fasynchronous-unwind-tables -fPIC -DR_INTERFACE_PTRS=1 -DCSTACK_DEFNS=1
-DRIF_HAS_RSIGHAND=1 -I/usr/lib/R/include -Irpy/rinterface
-I/usr/include/python2.6 -c rpy/rinterface/array.c -o
build/temp.linux-i686-2.6/rpy/rinterface/array.o
rpy/rinterface/array.c:7:26: error: rinterface.h: No such file or
directory
rpy/rinterface/array.c:108: error: expected ‘)’ before ‘*’ token
error: command 'gcc' failed with exit status 1
error: Bad exit status from /var/tmp/rpm-tmp.71022 (%build)


------------------------------------------------------------------------------
_______________________________________________
rpy-list mailing list
rpy-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpy-list

Reply via email to