New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #22571 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

py-numpy-1.3.0 build script looks for "f2py", should look for f2py2.4

Reported by: tolkan@… Owned by: dh@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc: mleiseca@…, christopherglong@…
Port: py-numpy

Description (last modified by ram@…) (diff)

Somehow the filename of the f2py binary that comes with py-numpy had been renamed to f2py2.4. The build script does not reflect this.

banshee:~ tolkan$ sudo port install py-numpy
--->  Computing dependencies for py-numpy
--->  Staging py-numpy into destroot
Error: Target org.macports.destroot returned: error renaming "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-numpy/work/destroot/opt/local/bin/f2py": no such file or directory
Error: Status 1 encountered during processing.
banshee:~ tolkan$ ls /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-numpy/work/destroot/opt/local/bin/f2py
ls: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-numpy/work/destroot/opt/local/bin/f2py: No such file or directory
banshee:~ tolkan$ ls /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-numpy/work/destroot/opt/local/bin/
f2py2.4

Attachments

Portfile-py-numpy.diff (394 bytes) - added by christopherglong@… 3 years ago.
I made dh's changes and tested them on 10.4/PPC and 10.6/Intel using numpy.test('full', 2) and it works perfectly. Here's the patch to the Portfile with his changes.

Change History

comment:1 Changed 4 years ago by ram@…

  • Owner changed from macports-tickets@… to dh@…
  • Port set to py-numpy
  • Description modified (diff)

please remember to use wiki formatting

comment:2 follow-up: ↓ 3 Changed 4 years ago by mleiseca@…

  • Cc mleiseca@… added

Cc Me!

comment:3 in reply to: ↑ 2 Changed 4 years ago by guillaume.salagnac@…

+1

comment:4 Changed 4 years ago by christopherglong@…

  • Cc christopherglong@… added

Cc Me!

comment:5 follow-up: ↓ 6 Changed 3 years ago by dh@…

I presume you must be running 10.6 (Snow Leopard)? I believe this is probably a 10.6 specific problem.

Unfortunately I'm currently travelling on business and won't be able to patch this until at least Dec 10th. Anyone else is welcome to commit a fix ... a suitable fix can be found in the py25-numpy portfile ... the post-destroot probably needs to change to ...

post-destroot {
  if {${os.platform} == "darwin" && ${os.major} < 10} {
    move ${destroot}${prefix}/bin/f2py ${destroot}${prefix}/bin/f2py${python.branch}
  }
}

Changed 3 years ago by christopherglong@…

I made dh's changes and tested them on 10.4/PPC and 10.6/Intel using numpy.test('full', 2) and it works perfectly. Here's the patch to the Portfile with his changes.

comment:6 in reply to: ↑ 5 Changed 3 years ago by christopherglong@…

Replying to dh@…:

I presume you must be running 10.6 (Snow Leopard)? I believe this is probably a 10.6 specific problem.

Unfortunately I'm currently travelling on business and won't be able to patch this until at least Dec 10th. Anyone else is welcome to commit a fix ... a suitable fix can be found in the py25-numpy portfile ... the post-destroot probably needs to change to ...

post-destroot {
  if {${os.platform} == "darwin" && ${os.major} < 10} {
    move ${destroot}${prefix}/bin/f2py ${destroot}${prefix}/bin/f2py${python.branch}
  }
}

Unfortunately, nobody has patched this port yet. Can you go ahead and do it?

comment:7 Changed 3 years ago by dh@…

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in r61998. Apologies for the delay. Thanks to christopherglong for testing it on 10.6 for me.

Note: See TracTickets for help on using tickets.