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

« back to all changes in this revision

Viewing changes to numpy/distutils/command/build.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:
2
2
import sys
3
3
from distutils.command.build import build as old_build
4
4
from distutils.util import get_platform
 
5
from numpy.distutils.command.config_compiler import show_fortran_compilers
5
6
 
6
7
class build(old_build):
7
8
 
8
 
    sub_commands = [('config_fc',     lambda *args: 1),
 
9
    sub_commands = [('config_cc',     lambda *args: True),
 
10
                    ('config_fc',     lambda *args: True),
9
11
                    ('build_src',     old_build.has_ext_modules),
10
12
                    ] + old_build.sub_commands
11
13
 
 
14
    user_options = old_build.user_options + [
 
15
        ('fcompiler=', None,
 
16
         "specify the Fortran compiler type"),
 
17
        ]
 
18
 
 
19
    help_options = old_build.help_options + [
 
20
        ('help-fcompiler',None, "list available Fortran compilers",
 
21
         show_fortran_compilers),
 
22
        ]
 
23
 
 
24
    def initialize_options(self):
 
25
        old_build.initialize_options(self)
 
26
        self.fcompiler = None
 
27
 
12
28
    def finalize_options(self):
13
29
        build_scripts = self.build_scripts
14
30
        old_build.finalize_options(self)
16
32
        if build_scripts is None:
17
33
            self.build_scripts = os.path.join(self.build_base,
18
34
                                              'scripts' + plat_specifier)
 
35
 
 
36
    def run(self):
 
37
        # Make sure that scons based extensions are complete.
 
38
        self.run_command('scons')
 
39
 
 
40
        old_build.run(self)