[MacPorts] #22033: py26-scientific fails to build

MacPorts noreply at macports.org
Tue Oct 13 07:51:51 PDT 2009


#22033: py26-scientific fails to build
-----------------------------------------+----------------------------------
 Reporter:  singingwolfboy@…             |       Owner:  adfernandes@…           
     Type:  defect                       |      Status:  new                     
 Priority:  Normal                       |   Milestone:                          
Component:  ports                        |     Version:  1.8.1                   
 Keywords:                               |        Port:  py26-scientific         
-----------------------------------------+----------------------------------

Comment(by adfernandes@…):

 Replying to [comment:8 singingwolfboy@…]:
 > Debug log is attached. I have py26-numeric installed, but not
 py26-numpy. Maybe that's the issue?

 Thanks! Yes, your logs report the first error as
 {{{
 running build_ext
 1174    building 'Scientific_netcdf' extension
 1175    creating build/temp.macosx-10.5-i386-2.6
 1176    creating build/temp.macosx-10.5-i386-2.6/Src
 1177    /usr/bin/gcc-4.0 -fno-strict-aliasing -fno-common -dynamic
 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py26-scientific/work/ScientificPython-2.8/Include
 -IInclude -I/opt/local/include
 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages/numpy/core/include
 -I/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6
 -c Src/Scientific_netcdf.c -o
 build/temp.macosx-10.5-i386-2.6/Src/Scientific_netcdf.o -DNUMPY=1
 1178    Src/Scientific_netcdf.c:14:31: error: numpy/arrayobject.h: No such
 file or directory
 1179    In file included from Src/Scientific_netcdf.c:25:
 }}}

 When I locate the file in my system:
 {{{
 Assam:~ andrew$ mdfind arrayobject.h | grep "numpy/arrayobject.h"
 /System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/numpy/core/include/numpy/arrayobject.h
 /opt/local/lib/python2.5/site-
 packages/numpy/core/include/numpy/arrayobject.h
 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages/numpy/core/include/numpy/arrayobject.h
 /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/numpy/core/include/numpy/arrayobject.h
 }}}

 So, yes, please try installing py26-numpy and see if the problem goes
 away. That would be nice if the problem was only an undeclared dependency.

 (I think this is a bug in py26-scientific, because the build docs say that
 numpy is not required.)

-- 
Ticket URL: <http://trac.macports.org/ticket/22033#comment:9>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list