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

« back to all changes in this revision

Viewing changes to numpy/distutils/interactive.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
 
 
2
1
import os
3
2
import sys
4
3
from pprint import pformat
12
11
    for a in ['name']:
13
12
        print 'os.%s = %s' % (a,pformat(getattr(os,a)))
14
13
    if hasattr(os,'uname'):
15
 
        print 'system,node,release,version,machine = ',os.uname()    
 
14
        print 'system,node,release,version,machine = ',os.uname()
16
15
 
17
16
def show_environ(*args):
18
17
    for k,i in os.environ.items():
20
19
 
21
20
def show_fortran_compilers(*args):
22
21
    from fcompiler import show_fcompilers
23
 
    show_fcompilers({})
 
22
    show_fcompilers()
24
23
 
25
24
def show_compilers(*args):
26
25
    from distutils.ccompiler import show_compilers
29
28
def show_tasks(argv,ccompiler,fcompiler):
30
29
    print """\
31
30
 
32
 
Tasks: 
 
31
Tasks:
33
32
  i       - Show python/platform/machine information
34
33
  ie      - Show environment information
35
34
  c       - Show C compilers information
51
50
    """ % (ccompiler, fcompiler, argv)
52
51
 
53
52
 
54
 
from exec_command import splitcmdline
 
53
import shlex
55
54
 
56
55
def edit_argv(*args):
57
56
    argv = args[0]
63
62
    except EOFError:
64
63
        return
65
64
    if s:
66
 
        argv[1:] = splitcmdline(s)
 
65
        argv[1:] = shlex.split(s)
67
66
    return
68
 
    
 
67
 
69
68
def interactive_sys_argv(argv):
70
69
    print '='*72
71
70
    print 'Starting interactive session'
103
102
    while 1:
104
103
        show_tasks(argv,c_compiler_name, f_compiler_name)
105
104
        try:
106
 
            task = raw_input('Choose a task (^D to quit, Enter to continue with setup): ').lower()
 
105
            task = raw_input('Choose a task (^D to quit, Enter to continue with setup): ')
107
106
        except EOFError:
108
107
            print
109
108
            task = 'quit'
 
109
        ltask = task.lower()
110
110
        if task=='': break
111
 
        if task=='quit': sys.exit()
112
 
        task_func = task_dict.get(task,None)
 
111
        if ltask=='quit': sys.exit()
 
112
        task_func = task_dict.get(ltask,None)
113
113
        if task_func is None:
114
 
            if task[0]=='c':
 
114
            if ltask[0]=='c':
115
115
                c_compiler_name = task[1:]
116
116
                if c_compiler_name=='none':
117
117
                    c_compiler_name = None
118
118
                continue
119
 
            if task[0]=='f':
 
119
            if ltask[0]=='f':
120
120
                f_compiler_name = task[1:]
121
121
                if f_compiler_name=='none':
122
122
                    f_compiler_name = None
186
186
 
187
187
    print '-'*72
188
188
    return argv
189