Ticket #13706: trac_13706-atlas_arch-tm.patch

File trac_13706-atlas_arch-tm.patch, 905 bytes (added by tmonteil, 8 years ago)

proposal minimalistic patch

  • spkg-install

    # HG changeset patch
    # User Thierry Monteil <sage at lma.metelu.net>
    # Date 1352796119 -3600
    # Node ID 0a7805d004793e5b96b69e93b41bd875dd64d9bf
    # Parent  c4a94bcc05f3e2bb686bb651a54e0b3dfee6f932
    #13706: let atlas spkg-install to take SAGE_ATLAS_ARCH into account when SAGE_FAT_BINARY is set to 'yes'
    
    diff --git a/spkg-install b/spkg-install
    a b def configure_options_from_environment() 
    200200        print 'linear algebra since full FAT binary support has not been implemented yet.'
    201201        arch = 'HAMMER'
    202202        isa_ext = ('SSE2', 'SSE1')
    203     elif os.environ.has_key('SAGE_ATLAS_ARCH'):
     203    if os.environ.has_key('SAGE_ATLAS_ARCH'):
    204204        opts = os.environ['SAGE_ATLAS_ARCH'].split(',')
    205205        arch = opts[0]
    206206        if len(opts)>0:
    207207            isa_ext = opts[1:]
     208        else:
     209            isa_ext = None
    208210    return (arch, isa_ext)
    209211
    210212