Skip to content

Commit

Permalink
py-tables: drop py27, dependencies for it have been removed
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Dec 3, 2024
1 parent 0f15810 commit 898f43d
Showing 1 changed file with 6 additions and 28 deletions.
34 changes: 6 additions & 28 deletions python/py-tables/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -33,55 +33,33 @@ 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 \
port:bzip2 \
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]
Expand Down

0 comments on commit 898f43d

Please sign in to comment.