Issue 330: setup fails on ubuntu if python-dev in not installed
Status:  Invalid
Owner:
Closed:  Aug 2010
Project Member Reported by thomas.h...@gmail.com, Aug 23, 2010
posted by boulabiar on irc:
sudo python setup.py install
[INFO   ] PyMT v0.5.1-dev
running install
running build
running build_py
running build_ext
building 'pymt.c_ext._transformations' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/lib/python2.6/dist-packages/numpy/core/include -I/usr/include/python2.6 -c pymt/c_ext/transformations.c -o build/temp.linux-i686-2.6/pymt/c_ext/transformations.o
pymt/c_ext/transformations.c:68: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1


to compile c extensions we need python-dev.  nto sure if xython also installs python-dev, but i think so.  need to change setup.py so it onoy tries compiling transformations.c if python.h is found.


Aug 23, 2010
Project Member #1 txprog
i don't agree, python-pymt depend on python-dev, and other extension too.
on wiki, we give one line that install poython-dev too. :)

and in the future pymt version, it will be required anyway. so it's cool to let the error here, and even write a better error like: "you miss to install python-dev package." ^^
Aug 23, 2010
Project Member #2 thomas.h...@gmail.com
ok, didnt realize python-pymt had teh dependency installed..so this is only problem if installing from source, whic is ok, since you must install deps yourself
Aug 24, 2010
Project Member #3 thomas.h...@gmail.com
(No comment was entered for this change.)
Status: Invalid