missing necessary f2py files included in original source dist.

Bug #117963 reported by Andrew Corrigan
2
Affects Status Importance Assigned to Milestone
python-numpy (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

if you run f2py with the --g3-numpy option it tries to import files which are not in the numpy package. If you look at /usr/bin/f2py2.5 you can see what in particular:

if mode=="g3-numpy":
    try:
        from main import main
    except ImportError:
        from numpy.f2py.lib.api import main

This file main.py or api.py should be in /usr/lib/python2.5/site-packages/numpy/f2py/lib/ and are included in the original source distribution of numpy, but they are apparently not included in the ubuntu package.

I checked on the ubuntu packages web site to see if this has already been fixed for gutsy, but it has not.

Revision history for this message
Scott Kitterman (kitterman) wrote :

python-numpy-1.0.3/numpy/f2py/lib/api.py is present in the current Gutsy source. Please have a look again. and let me know if this is resolved.

Changed in python-numpy:
status: New → Incomplete
Revision history for this message
Andrew Corrigan (acorriga) wrote :

I opened up the orig.tar.gz from the source package from http://packages.ubuntu.com/gutsy/python/python-numpy and I see that /usr/lib/python2.5/site-packages/numpy/f2py/lib/api.py is present.

However, it is absent from the binary packages. So it seems that this issue is not resolved.

Revision history for this message
Scott Kitterman (kitterman) wrote :

OK. Well I'll have a look at fixing that then.

Changed in python-numpy:
status: Incomplete → Triaged
Revision history for this message
Scott Kitterman (kitterman) wrote :

I've just uploaded a new revision that installs all the remaining f2py files that weren't being installed from the source before (including api.py). As this is new functionality for the Debian package, any testing/feedback you could provide would be very helpful.

Revision history for this message
Scott Kitterman (kitterman) wrote :

python-numpy (1:1.0.3-1ubuntu1) gutsy; urgency=low

  * Uncomment rules in debian/rules to install more f2py files
  * Add debian/rules to install the remainder of f2py (LP: #117963)
  * Update python-numpy.install with new files.
  * Change maintainer to MOTU

 -- Scott Kitterman <email address hidden> Wed, 01 Aug 2007 23:18:18 -0400

Changed in python-numpy:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.