Opened 15 years ago
Closed 15 years ago
#22571 closed defect (fixed)
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 skymoo (Adam Mercer))
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 (1)
Change History (8)
comment:1 Changed 15 years ago by skymoo (Adam Mercer)
Description: | modified (diff) |
---|---|
Owner: | changed from macports-tickets@… to dh@… |
Port: | py-numpy added |
comment:5 follow-up: 6 Changed 15 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 15 years ago by christopherglong@…
Attachment: | Portfile-py-numpy.diff added |
---|
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 Changed 15 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 15 years ago by dh@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in r61998. Apologies for the delay. Thanks to christopherglong for testing it on 10.6 for me.
please remember to use wiki formatting