mansrz / pymt

Automatically exported from code.google.com/p/pymt
0 stars 0 forks source link

setup fails on ubuntu if python-dev in not installed #330

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by thomas.h...@gmail.com on 23 Aug 2010 at 2:28

GoogleCodeExporter commented 9 years ago
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." ^^

Original comment by txprog on 23 Aug 2010 at 2:38

GoogleCodeExporter commented 9 years ago
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

Original comment by thomas.h...@gmail.com on 23 Aug 2010 at 2:44

GoogleCodeExporter commented 9 years ago

Original comment by thomas.h...@gmail.com on 25 Aug 2010 at 5:56