New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 81034


Ignore:
Timestamp:
07/23/11 18:58:26 (4 years ago)
Author:
jmr@…
Message:

py*-numpy, py*-scipy: don't use atlas by default (see #30327)

Location:
trunk/dports/python
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/python/py-numpy/Portfile

    r80750 r81034  
    4646    depends_lib-append  port:atlas 
    4747} 
    48  
    49 # use ATLAS by default; if MacPorts' ATLAS is not used, numpy will 
    50 # link with that supplied by Apple's Accelerate framework. 
    51 default_variants +atlas 
    5248 
    5349# when using ATLAS (whether by default or specified by the user via 
  • trunk/dports/python/py-scipy/Portfile

    r80751 r81034  
    2424                        port:py-nose \ 
    2525                        port:SuiteSparse \ 
    26                         port:swig-python \ 
    27                         port:atlas 
     26                        port:swig-python 
    2827 
    2928worksrcdir              ${distname} 
    3029 
    31 build.env-append        CCFLAGS="-I${prefix}/include -L${prefix}/lib" \ 
    32                         ATLAS=${prefix}/lib \ 
    33                         LAPACK=${prefix}/lib \ 
    34                         BLAS=${prefix}/lib 
     30build.env-append        CCFLAGS="-I${prefix}/include -L${prefix}/lib" 
    3531 
    36 destroot.env-append     CCFLAGS="-I${prefix}/include -L${prefix}/lib" \ 
    37                         ATLAS=${prefix}/lib \ 
    38                         LAPACK=${prefix}/lib \ 
    39                         BLAS=${prefix}/lib 
     32destroot.env-append     CCFLAGS="-I${prefix}/include -L${prefix}/lib" 
    4033 
    4134python.add_archflags    no 
    4235universal_variant       no 
    43  
    44 #pre-fetch { 
    45 #  if {![llength [glob -nocomplain ${prefix}/share/swig/*/python/python.swg]]} { 
    46 #    ui_error "The python variant of swig is not installed. Please run" 
    47 #    ui_error "the following command:" 
    48 #    ui_error "$ sudo port -fn upgrade swig +python" 
    49 #    error "python variant of swig required" 
    50 #  } 
    51 #} 
    5236 
    5337post-patch { 
     
    5539} 
    5640 
    57 variant no_atlas description "Do not use macports atlas libraries" { 
    58     depends_lib-delete      port:atlas 
     41variant atlas description "Use MacPorts ATLAS libraries" { 
     42    depends_lib-append      port:atlas 
    5943 
    60     build.env-delete        ATLAS=${prefix}/lib \ 
     44    build.env-append        ATLAS=${prefix}/lib \ 
    6145                            LAPACK=${prefix}/lib \ 
    6246                            BLAS=${prefix}/lib 
    6347 
    64     destroot.env-delete     ATLAS=${prefix}/lib \ 
     48    destroot.env-append     ATLAS=${prefix}/lib \ 
    6549                            LAPACK=${prefix}/lib \ 
    6650                            BLAS=${prefix}/lib 
  • trunk/dports/python/py25-numpy/Portfile

    r80750 r81034  
    4646    depends_lib-append  port:atlas 
    4747} 
    48  
    49 # use ATLAS by default; if MacPorts' ATLAS is not used, numpy will 
    50 # link with that supplied by Apple's Accelerate framework. 
    51 default_variants +atlas 
    5248 
    5349# when using ATLAS (whether by default or specified by the user via 
  • trunk/dports/python/py25-scipy/Portfile

    r80751 r81034  
    2525                        port:py25-nose \ 
    2626                        port:SuiteSparse \ 
    27                         port:swig-python \ 
    28                         port:atlas 
     27                        port:swig-python 
    2928 
    3029worksrcdir              ${distname} 
    3130 
    32 build.env-append        CCFLAGS="-I${prefix}/include -L${prefix}/lib" \ 
    33                         ATLAS=${prefix}/lib \ 
    34                         LAPACK=${prefix}/lib \ 
    35                         BLAS=${prefix}/lib 
     31build.env-append        CCFLAGS="-I${prefix}/include -L${prefix}/lib" 
    3632 
    37 destroot.env-append     CCFLAGS="-I${prefix}/include -L${prefix}/lib" \ 
    38                         ATLAS=${prefix}/lib \ 
    39                         LAPACK=${prefix}/lib \ 
    40                         BLAS=${prefix}/lib 
     33destroot.env-append     CCFLAGS="-I${prefix}/include -L${prefix}/lib" 
    4134 
    4235python.add_archflags    no 
    4336universal_variant       no 
    44  
    45 #pre-fetch { 
    46 #  if {![llength [glob -nocomplain ${prefix}/share/swig/*/python/python.swg]]} { 
    47 #    ui_error "The python variant of swig is not installed. Please run" 
    48 #    ui_error "the following command:" 
    49 #    ui_error "$ sudo port -fn upgrade swig +python" 
    50 #    error "python variant of swig required" 
    51 #  } 
    52 #} 
    5337 
    5438post-patch { 
     
    5640} 
    5741 
    58 variant no_atlas description "Do not use macports atlas libraries" { 
    59     depends_lib-delete      port:atlas 
     42variant atlas description "Use MacPorts ATLAS libraries" { 
     43    depends_lib-append      port:atlas 
    6044 
    61     build.env-delete        ATLAS=${prefix}/lib \ 
     45    build.env-append        ATLAS=${prefix}/lib \ 
    6246                            LAPACK=${prefix}/lib \ 
    6347                            BLAS=${prefix}/lib 
    6448 
    65     destroot.env-delete     ATLAS=${prefix}/lib \ 
     49    destroot.env-append     ATLAS=${prefix}/lib \ 
    6650                            LAPACK=${prefix}/lib \ 
    6751                            BLAS=${prefix}/lib 
  • trunk/dports/python/py26-numpy/Portfile

    r81023 r81034  
    4747    depends_lib-append  port:atlas 
    4848} 
    49  
    50 # use ATLAS by default; if MacPorts' ATLAS is not used, numpy will 
    51 # link with that supplied by Apple's Accelerate framework. 
    52 default_variants +atlas 
    5349 
    5450# when using ATLAS (whether by default or specified by the user via 
  • trunk/dports/python/py26-scipy/Portfile

    r80751 r81034  
    2525                        port:py26-nose \ 
    2626                        port:SuiteSparse \ 
    27                         port:swig-python \ 
    28                         port:atlas 
     27                        port:swig-python 
    2928 
    3029worksrcdir              ${distname} 
    3130 
    32 build.env-append        CCFLAGS="-I${prefix}/include -L${prefix}/lib" \ 
    33                         ATLAS=${prefix}/lib \ 
    34                         LAPACK=${prefix}/lib \ 
    35                         BLAS=${prefix}/lib 
     31build.env-append        CCFLAGS="-I${prefix}/include -L${prefix}/lib" 
    3632 
    37 destroot.env-append     CCFLAGS="-I${prefix}/include -L${prefix}/lib" \ 
    38                         ATLAS=${prefix}/lib \ 
    39                         LAPACK=${prefix}/lib \ 
    40                         BLAS=${prefix}/lib 
     33destroot.env-append     CCFLAGS="-I${prefix}/include -L${prefix}/lib" 
    4134 
    4235post-patch { 
     
    4437} 
    4538 
    46 variant no_atlas description "Do not use macports atlas libraries" { 
    47     depends_lib-delete      port:atlas 
     39variant atlas description "Use MacPorts ATLAS libraries" { 
     40    depends_lib-append      port:atlas 
    4841 
    49     build.env-delete        ATLAS=${prefix}/lib \ 
     42    build.env-append        ATLAS=${prefix}/lib \ 
    5043                            LAPACK=${prefix}/lib \ 
    5144                            BLAS=${prefix}/lib 
    5245 
    53     destroot.env-delete     ATLAS=${prefix}/lib \ 
     46    destroot.env-append     ATLAS=${prefix}/lib \ 
    5447                            LAPACK=${prefix}/lib \ 
    5548                            BLAS=${prefix}/lib 
  • trunk/dports/python/py27-numpy/Portfile

    r81023 r81034  
    4646    depends_lib-append  port:atlas 
    4747} 
    48  
    49 # use ATLAS by default; if MacPorts' ATLAS is not used, numpy will 
    50 # link with that supplied by Apple's Accelerate framework. 
    51 default_variants +atlas 
    5248 
    5349# when using ATLAS (whether by default or specified by the user via 
  • trunk/dports/python/py27-scipy/Portfile

    r80751 r81034  
    2525                        port:py27-nose \ 
    2626                        port:SuiteSparse \ 
    27                         port:swig-python \ 
    28                         port:atlas 
     27                        port:swig-python 
    2928 
    3029worksrcdir              ${distname} 
    3130 
    32 build.env-append        CCFLAGS="-I${prefix}/include -L${prefix}/lib" \ 
    33                         ATLAS=${prefix}/lib \ 
    34                         LAPACK=${prefix}/lib \ 
    35                         BLAS=${prefix}/lib 
     31build.env-append        CCFLAGS="-I${prefix}/include -L${prefix}/lib" 
    3632 
    37 destroot.env-append     CCFLAGS="-I${prefix}/include -L${prefix}/lib" \ 
    38                         ATLAS=${prefix}/lib \ 
    39                         LAPACK=${prefix}/lib \ 
    40                         BLAS=${prefix}/lib 
     33destroot.env-append     CCFLAGS="-I${prefix}/include -L${prefix}/lib" 
    4134 
    4235post-patch { 
     
    4437} 
    4538 
    46 variant no_atlas description "Do not use macports atlas libraries" { 
    47     depends_lib-delete      port:atlas 
     39variant atlas description "Use MacPorts ATLAS libraries" { 
     40    depends_lib-append      port:atlas 
    4841 
    49     build.env-delete        ATLAS=${prefix}/lib \ 
     42    build.env-append        ATLAS=${prefix}/lib \ 
    5043                            LAPACK=${prefix}/lib \ 
    5144                            BLAS=${prefix}/lib 
    5245 
    53     destroot.env-delete     ATLAS=${prefix}/lib \ 
     46    destroot.env-append     ATLAS=${prefix}/lib \ 
    5447                            LAPACK=${prefix}/lib \ 
    5548                            BLAS=${prefix}/lib 
  • trunk/dports/python/py31-numpy/Portfile

    r81023 r81034  
    4646    depends_lib-append  port:atlas 
    4747} 
    48  
    49 # use ATLAS by default; if MacPorts' ATLAS is not used, numpy will 
    50 # link with that supplied by Apple's Accelerate framework. 
    51 default_variants +atlas 
    5248 
    5349# when using ATLAS (whether by default or specified by the user via 
  • trunk/dports/python/py31-scipy/Portfile

    r80751 r81034  
    2525                        port:py31-nose \ 
    2626                        port:SuiteSparse \ 
    27                         port:swig-python \ 
    28                         port:atlas 
     27                        port:swig-python 
    2928 
    3029worksrcdir              ${distname} 
    3130 
    32 build.env-append        CCFLAGS="-I${prefix}/include -L${prefix}/lib" \ 
    33                         ATLAS=${prefix}/lib \ 
    34                         LAPACK=${prefix}/lib \ 
    35                         BLAS=${prefix}/lib 
     31build.env-append        CCFLAGS="-I${prefix}/include -L${prefix}/lib" 
    3632 
    37 destroot.env-append     CCFLAGS="-I${prefix}/include -L${prefix}/lib" \ 
    38                         ATLAS=${prefix}/lib \ 
    39                         LAPACK=${prefix}/lib \ 
    40                         BLAS=${prefix}/lib 
     33destroot.env-append     CCFLAGS="-I${prefix}/include -L${prefix}/lib" 
    4134 
    4235post-patch { 
     
    4437} 
    4538 
    46 variant no_atlas description "Do not use macports atlas libraries" { 
    47     depends_lib-delete      port:atlas 
     39variant atlas description "Use MacPorts ATLAS libraries" { 
     40    depends_lib-append      port:atlas 
    4841 
    49     build.env-delete        ATLAS=${prefix}/lib \ 
     42    build.env-append        ATLAS=${prefix}/lib \ 
    5043                            LAPACK=${prefix}/lib \ 
    5144                            BLAS=${prefix}/lib 
    5245 
    53     destroot.env-delete     ATLAS=${prefix}/lib \ 
     46    destroot.env-append     ATLAS=${prefix}/lib \ 
    5447                            LAPACK=${prefix}/lib \ 
    5548                            BLAS=${prefix}/lib 
  • trunk/dports/python/py32-numpy/Portfile

    r81023 r81034  
    4646    depends_lib-append  port:atlas 
    4747} 
    48  
    49 # use ATLAS by default; if MacPorts' ATLAS is not used, numpy will 
    50 # link with that supplied by Apple's Accelerate framework. 
    51 default_variants +atlas 
    5248 
    5349# when using ATLAS (whether by default or specified by the user via 
  • trunk/dports/python/py32-scipy/Portfile

    r80751 r81034  
    2525                        port:py32-nose \ 
    2626                        port:SuiteSparse \ 
    27                         port:swig-python \ 
    28                         port:atlas 
     27                        port:swig-python 
    2928 
    3029worksrcdir              ${distname} 
    3130 
    32 build.env-append        CCFLAGS="-I${prefix}/include -L${prefix}/lib" \ 
    33                         ATLAS=${prefix}/lib \ 
    34                         LAPACK=${prefix}/lib \ 
    35                         BLAS=${prefix}/lib 
     31build.env-append        CCFLAGS="-I${prefix}/include -L${prefix}/lib" 
    3632 
    37 destroot.env-append     CCFLAGS="-I${prefix}/include -L${prefix}/lib" \ 
    38                         ATLAS=${prefix}/lib \ 
    39                         LAPACK=${prefix}/lib \ 
    40                         BLAS=${prefix}/lib 
     33destroot.env-append     CCFLAGS="-I${prefix}/include -L${prefix}/lib" 
    4134 
    4235post-patch { 
     
    4437} 
    4538 
    46 variant no_atlas description "Do not use macports atlas libraries" { 
    47     depends_lib-delete      port:atlas 
     39variant atlas description "Use MacPorts ATLAS libraries" { 
     40    depends_lib-append      port:atlas 
    4841 
    49     build.env-delete        ATLAS=${prefix}/lib \ 
     42    build.env-append        ATLAS=${prefix}/lib \ 
    5043                            LAPACK=${prefix}/lib \ 
    5144                            BLAS=${prefix}/lib 
    5245 
    53     destroot.env-delete     ATLAS=${prefix}/lib \ 
     46    destroot.env-append     ATLAS=${prefix}/lib \ 
    5447                            LAPACK=${prefix}/lib \ 
    5548                            BLAS=${prefix}/lib 
Note: See TracChangeset for help on using the changeset viewer.