[NumPy-Tickets] [NumPy] #1399: distutils fails to build ppc64 support on Mac OS X when requested

NumPy Trac numpy-tickets@scipy....
Tue Oct 19 08:55:30 CDT 2010


#1399: distutils fails to build ppc64 support on Mac OS X when requested
---------------------------------+------------------------------------------
  Reporter:  david.warde-farley  |       Owner:  rgommers                                      
      Type:  defect              |      Status:  reopened                                      
  Priority:  highest             |   Milestone:  1.5.1                                         
 Component:  numpy.distutils     |     Version:  devel                                         
Resolution:                      |    Keywords:  macosx, osx, distutils, universalbinary, ppc64
---------------------------------+------------------------------------------

Comment(by rgommers):

 Not sure what the answer is (and would be good to know), but it shouldn't
 matter. I'm proposing this: http://github.com/rgommers/numpy/tree/fortran-
 archflags. This partly reverts your changes, the diff with what we had
 before is:

 {{{
 205,217d204
 <     def _c_arch_flags(self):
 <         """ Return detected arch flags from CFLAGS """
 <         from distutils import sysconfig
 <         try:
 <             cflags = sysconfig.get_config_vars()['CFLAGS']
 <         except KeyError:
 <             return []
 <         arch_re = re.compile(r"-arch\s+(\w+)")
 <         arch_flags = []
 <         for arch in arch_re.findall(cflags):
 <             arch_flags += ['-arch', arch]
 <         return arch_flags
 <
 219c206
 <         return self._c_arch_flags()
 ---
 >         return []

 274,279d256
 <         # get arches the C compiler gets.
 <         c_archs = self.get_flags_arch()
 <         if "i386" in c_archs:
 <             c_archs[c_archs.index("i386")] = "i686"
 <         # check the arches the Fortran compiler supports, and compare
 with
 <         # arch flags from C compiler
 281c258
 <             if _can_target(cmd, arch) and arch in c_archs:
 ---
 >             if _can_target(cmd, arch):
 }}}

 A first test shows it returns the correct flags. Now compiling scipy to
 see if it all works.

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1399#comment:20>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list