Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#33 Problems configuring for python module

closed
nobody
None
5
2011-03-18
2011-03-18
amicitas
No

I am trying to compile the GDL python module and so far no luck. I am currently using the latest CVS version. I am attempting to install on OS X 10.6.6 with Python 2.7. My Python installation was done through macports.

Configuration fails when looking for libnumarray.h.

I am passing the following options to configure, taken from the current macports file with modifications to build the python module:

./configure --prefix=/opt/local --with-plplotdir=/opt/local --with-ncursesdir=/opt/local --with-readlinedir=/opt/local --with-gsldir=/opt/local --with-netcdf=/opt/local --with-hdf=/opt/local --with-hdf5=/opt/local --with-grib=/opt/local --with-Magick=/opt/local --without-wxWidgets --disable-dependency-tracking --x-includes=/opt/local/include --x-libraries=/opt/local/lib --with-udunits=/opt/local --with-fftw=/opt/local --with-libproj4=/opt/local --with-python=no --with-openmp=no --with-python=/opt/local/Library/Frameworks/Python.framework/Versions/2.7 --enable-python_version=2.7 --enable-python_module

I get the following error:

checking for /opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/numarray/libnumarray.h... no

Error! Python numarray package was not found

With the macports installation it looks like libnumarray.h can be found here:
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/numarray/include/numpy/libnumarray.h

If we can figure out how to get this to work, then I will submit a patch of the portfile to macports.

Novimir

Discussion

  • Hello,

    Could you try the current CVS version? The configure file was not updated to reflect the recent changes in the configure.in.

    Hope that helps,
    Sylwester

     
    • status: open --> closed
     
  • amicitas
    amicitas
    2011-03-22

    Getting the latest version did allow me to configure with numpy.

    I did however have to disable GRIB support, even though the grib libraries are installed on my computer (again through macports). I also had to patch gsl_fun.cpp to change the include path for udunits2. I'll submit the patch in a bug report.

    I have not tested the final gdl library after building.