Ticket #37400: scipy.patch

File scipy.patch, 1.2 KB (added by g5pw (Aljaž Srebrnič), 12 years ago)
  • python/py-scipy/Portfile

     
    2020checksums               rmd160 68c0d13088d898e96c3a7ea4e77f8fc9b49e6c78 \
    2121                        sha256 b2b74d56a2d58a4f032f91e8b91b1c2272d5eb0b5010082dd1e492e452f862ee
    2222
    23 python.versions         24 25 26 27 31 32
     23python.versions         24 25 26 27 31 32 33
    2424
    2525if {${subport} != ${name}} {
    2626
     
    148148    pre-activate {
    149149        set regref [registry_open $subport $version $revision $portvariants ""]
    150150        foreach f [registry_prop_retr $regref imagefiles] {
     151            if {[file extension $f] == ".pyc" && [file exists $f] && [registry_file_registered $f] == "0"} {
     152                file delete -force $f
     153            }
     154        }
     155    }
     156}
     157
     158subport py33-scipy {
     159    pre-activate {
     160        set regref [registry_open $subport $version $revision $portvariants ""]
     161        foreach f [registry_prop_retr $regref imagefiles] {
    151162            if {[file extension $f] == ".pyc" && [file exists $f] && [registry_file_registered $f] == "0"} {
    152163                file delete -force $f
    153164            }