From 898f43d23ffe717dcc59bcfabd50c9d3fd3363a9 Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Tue, 3 Dec 2024 15:53:24 +0800 Subject: [PATCH] py-tables: drop py27, dependencies for it have been removed --- python/py-tables/Portfile | 34 ++++++---------------------------- 1 file changed, 6 insertions(+), 28 deletions(-) diff --git a/python/py-tables/Portfile b/python/py-tables/Portfile index 4564a89c1b06a..6dbb96b03e6c3 100644 --- a/python/py-tables/Portfile +++ b/python/py-tables/Portfile @@ -9,7 +9,7 @@ version 3.9.2 categories-append science license BSD -python.versions 27 39 310 311 312 +python.versions 39 310 311 312 maintainers nomaintainer @@ -33,40 +33,26 @@ compiler.blacklist-append \ mpi.setup if {${name} ne ${subport}} { - # Last version that supports python 2.7 - if {${python.version} == 27} { - version 3.5.2 - revision 10 - checksums rmd160 9e5aa9f3b270888c853eb5f30cd6461a362bb1c1 \ - sha256 b220e32262bab320aa41d33125a7851ff898be97c0de30b456247508e2cc33c2 \ - size 7825372 - } - build.env-append BLOSC_DIR=${prefix} \ + BLOSC2_DIR=${prefix} \ BZIP2_DIR=${prefix} \ HDF5_DIR=${prefix} \ LZO_DIR=${prefix} destroot.env-append BLOSC_DIR=${prefix} \ + BLOSC2_DIR=${prefix} \ BZIP2_DIR=${prefix} \ HDF5_DIR=${prefix} \ LZO_DIR=${prefix} depends_build-append \ port:py${python.version}-setuptools \ - path:bin/pkg-config:pkgconfig - - if {${python.version} <= 38} { - depends_build-append \ - port:py${python.version}-cython-compat - set compat_path [string replace ${python.pkgd} 0 [string length ${python.prefix}]-1 ${prefix}/lib/py${python.version}-cython-compat] - build.env-append PYTHONPATH=${compat_path} - } else { - depends_build-append \ + path:bin/pkg-config:pkgconfig \ port:py${python.version}-cython - } mpi.enforce_variant hdf5 depends_lib-append port:hdf5 \ + port:py${python.version}-blosc2 \ + port:py${python.version}-cpuinfo \ port:py${python.version}-numpy \ port:py${python.version}-numexpr \ port:zlib \ @@ -74,14 +60,6 @@ if {${name} ne ${subport}} { port:lzo2 \ port:blosc - if {${python.version} >= 38} { - depends_lib-append port:py${python.version}-blosc2 \ - port:py${python.version}-cpuinfo - - build.env-append BLOSC2_DIR=${prefix} - destroot.env-append BLOSC2_DIR=${prefix} - } - post-patch { file rename ${worksrcpath}/src/utils.h ${worksrcpath}/src/xxx_utils.h set cfiles [glob -nocomplain -directory ${worksrcpath}/tables *.c]