[NumPy-Tickets] [NumPy] #1261: Compiling on PA-RISC

NumPy Trac numpy-tickets@scipy....
Wed Mar 30 10:33:43 CDT 2011


#1261: Compiling on PA-RISC
-------------------------+--------------------------------------------------
 Reporter:  dpeterson    |       Owner:  rgommers    
     Type:  enhancement  |      Status:  needs_review
 Priority:  normal       |   Milestone:  1.6.0       
Component:  Other        |     Version:              
 Keywords:               |  
-------------------------+--------------------------------------------------
Changes (by rgommers):

  * status:  needs_work => needs_review


Comment:

 Okay, here's what's left:
 {{{
 --- numpy-1.1.0/numpy/distutils/ccompiler.py.orig       2008-07-14
 17:30:32 +0200
 +++ numpy-1.1.0/numpy/distutils/ccompiler.py    2008-07-14 17:32:36 +0200
 @@ -108,6 +108,13 @@
             self._setup_compile(output_dir, macros, include_dirs, sources,
                                 depends, extra_postargs)
     cc_args = self._get_cc_args(pp_opts, debug, extra_preargs)
 +
 +    # patch fortran compiler flags on AIX as -D is not a macro definition
 flag there!
 +    if isinstance(self, FCompiler):
 +        for iarg in range(len(cc_args)):
 +            if cc_args[iarg][:2] == '-D':
 +                cc_args[iarg] = '-WF,' + cc_args[iarg]
 +
     display = "compile options: '%s'" % (' '.join(cc_args))
     if extra_postargs:
         display += "\nextra options: '%s'" % (' '.join(extra_postargs))
 }}}

 This should probably be in {{{fcompiler/__init__.py}}}, in
 FCompiler._compile, and look like:
 {{{
     if self.compiler_type == 'ibm':
         for iarg in range(len(cc_args)):
             if cc_args[iarg][:2] == '-D':
                 cc_args[iarg] = '-WF,' + cc_args[iarg]
 }}}

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


More information about the NumPy-Tickets mailing list