[MacPorts] #19397: scipy not completely universal
MacPorts
noreply at macports.org
Tue May 25 07:31:54 PDT 2010
#19397: scipy not completely universal
-------------------------------------------+--------------------------------
Reporter: daweonline@… | Owner: jmr@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.7.1
Keywords: scipy python universal binary | Port: py26-scipy
-------------------------------------------+--------------------------------
Comment(by vince@…):
Okay, there are three files to build 2-way universal i386/x86_64 or
ppc/ppc64 (NOT tested) numpy and scipy (that's the Portfile called
Portfile_scipy, sorry for the wrong comment).
To build universal numpy and scipy, you should first build a universal
version of Atlas: I've posted a solution some time ago. Anyhow, you will
need a multilib enabled version of gcc, preferably gcc44 or gcc45.
The 'wrapper' file shall go in the files directory of both ports. It is a
Bourne shell script that analyses the various calls to compilers,
transforms the -arch flags into suitable -mXX and then calls lipo if
necessary. In a way, it reproduces what the Apple gcc does. It might be
buggy, but at least it works for numpy or scipy. The 'wrapper' is a
template that gets transformed into a C, a C++ and a Fortran wrapper by
the Portfiles. It also corrects missing flags when invoked to link dynamic
libraries (a.k.a .so, here).
Please test in a local repository if possible, and report any bug. It
seems scipy.test fails test_iv_cephes_vs_amos_mass_test, but this seems to
be a known bug (if I have figured out the few infos I found).
--
Ticket URL: <http://trac.macports.org/ticket/19397#comment:16>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list