~jtaylor/ubuntu/precise/python-numpy/multiarch-fix-818867

« back to all changes in this revision

Viewing changes to numpy/distutils/fcompiler/g95.py

  • Committer: Bazaar Package Importer
  • Author(s): Ondrej Certik, Riku Voipio, Tiziano Zito, Carlos Galisteo, Ondrej Certik
  • Date: 2008-07-08 15:08:16 UTC
  • mfrom: (0.1.21 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080708150816-ekf992jcp2k1eua3
Tags: 1:1.1.0-3
[ Riku Voipio ]
* debian/control: atlas is not available on armel, and after a quick look
  neither on alpha. I'd also suggest dropping
  libatlas-sse-dev|libatlas-sse2-dev|libatlas-3dnow-dev alternative combo
  away, these are potentially dangerous on buildd's. Ondrej: dropped.
  (Closes: #489568)

[ Tiziano Zito ]
* patch: build _dotblas.c when ATLAS is not installed, build-conflict with
  atlas, build-depend on blas+lapack only, as it used to be (Closes: #489726)

[ Carlos Galisteo ]
* debian/control
  - Added Homepage field.

[ Ondrej Certik ]
* Checked the package on i386 and amd64, both with and without atlas, all
  tests run and the numpy package is faster if atlas is around. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# http://g95.sourceforge.net/
2
2
 
3
 
import os
4
 
import sys
5
 
 
6
 
from numpy.distutils.cpuinfo import cpu
7
3
from numpy.distutils.fcompiler import FCompiler
8
4
 
 
5
compilers = ['G95FCompiler']
 
6
 
9
7
class G95FCompiler(FCompiler):
10
 
 
11
8
    compiler_type = 'g95'
 
9
    description = 'G95 Fortran Compiler'
 
10
 
12
11
#    version_pattern = r'G95 \((GCC (?P<gccversion>[\d.]+)|.*?) \(g95!\) (?P<version>.*)\).*'
13
12
    # $ g95 --version
14
13
    # G95 (GCC 4.0.3 (g95!) May 22 2006)
16
15
    version_pattern = r'G95 \((GCC (?P<gccversion>[\d.]+)|.*?) \(g95 (?P<version>.*)!\) (?P<date>.*)\).*'
17
16
    # $ g95 --version
18
17
    # G95 (GCC 4.0.3 (g95 0.90!) Aug 22 2006)
19
 
   
20
18
 
21
19
    executables = {
22
 
        'version_cmd'  : ["g95", "--version"],
 
20
        'version_cmd'  : ["<F90>", "--version"],
23
21
        'compiler_f77' : ["g95", "-ffixed-form"],
24
22
        'compiler_fix' : ["g95", "-ffixed-form"],
25
23
        'compiler_f90' : ["g95"],
26
 
        'linker_so'    : ["g95","-shared"],
 
24
        'linker_so'    : ["<F90>","-shared"],
27
25
        'archiver'     : ["ar", "-cr"],
28
26
        'ranlib'       : ["ranlib"]
29
27
        }
41
39
if __name__ == '__main__':
42
40
    from distutils import log
43
41
    log.set_verbosity(2)
44
 
    from numpy.distutils.fcompiler import new_fcompiler
45
 
    #compiler = new_fcompiler(compiler='g95')
46
42
    compiler = G95FCompiler()
47
43
    compiler.customize()
48
44
    print compiler.get_version()