[Scipy-tickets] [SciPy] #1481: scipy.weave and linux-package dependencies

SciPy Trac scipy-tickets@scipy....
Wed Jul 20 09:18:52 CDT 2011


#1481: scipy.weave and linux-package dependencies
-------------------------+--------------------------------------------------
 Reporter:  tsvikas      |       Owner:  somebody
     Type:  defect       |      Status:  new     
 Priority:  normal       |   Milestone:  0.9.1   
Component:  scipy.weave  |     Version:  0.9.0   
 Keywords:               |  
-------------------------+--------------------------------------------------
 On a linux platform with the package 'python2.6' installed, but with the
 package 'python 2.6-dev' not installed (a popular configuration),
 using the library scipy.weave in a python code (to create inline c++ code)
 result in the c++ compile error "Python.h: No such file or directory".
 (note: I did it with "type_converters=weave.converters.blitz", might be
 related)
 (this probably also occur with other python version. see below)

 The cause of this error message is because this file is only installed
 with 'python 2.6-dev' package.
 It is a problematic situation, because one expect packages to contain
 everything needed to run themselves.

 Possible solutions - it might be wise to:
 * Add 'python2.x-dev' to the dependencies of 'python-scipy' package

 OR
 * Add '/usr/lib/python2.x/dist-packages/scipy/weave/scxx/Python.h' to the
 linux package python2.x

 OR
 * clearly state in the scipy.weave documentation that in linux you must
 install 'python2.x-dev', in order for the package to work.


 examples to this problem can be seen in a simple google search:
 http://www.google.com/search?q=Python.h%3A+No+such+file+or+directory

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1481>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list