From d4e81b486865523b3b9e3bf322a213f5f865720b Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Tue, 26 Sep 2023 12:59:15 -0400 Subject: [PATCH] python-numpy: remove python2 --- srcpkgs/python-numpy/files/fenv-constants.h | 10 ----- .../python-numpy/files/fenv-constants.patch | 11 ------ srcpkgs/python-numpy/template | 39 ------------------- srcpkgs/python-numpy/update | 1 - 4 files changed, 61 deletions(-) delete mode 100644 srcpkgs/python-numpy/files/fenv-constants.h delete mode 100644 srcpkgs/python-numpy/files/fenv-constants.patch delete mode 100644 srcpkgs/python-numpy/template delete mode 100644 srcpkgs/python-numpy/update diff --git a/srcpkgs/python-numpy/files/fenv-constants.h b/srcpkgs/python-numpy/files/fenv-constants.h deleted file mode 100644 index c2c21d2bb23..00000000000 --- a/srcpkgs/python-numpy/files/fenv-constants.h +++ /dev/null @@ -1,10 +0,0 @@ -#define FE_INVALID 1 -#define FE_DIVBYZERO 2 -#define FE_OVERFLOW 4 -#define FE_UNDERFLOW 8 -#define FE_INEXACT 16 -#define FE_ALL_EXCEPT 31 -#define FE_TONEAREST 0 -#define FE_DOWNWARD 0x800000 -#define FE_UPWARD 0x400000 -#define FE_TOWARDZERO 0xc00000 diff --git a/srcpkgs/python-numpy/files/fenv-constants.patch b/srcpkgs/python-numpy/files/fenv-constants.patch deleted file mode 100644 index 987ad4e346f..00000000000 --- a/srcpkgs/python-numpy/files/fenv-constants.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- numpy/core/src/npymath/ieee754.c.src 2020-09-20 14:53:51.998825328 +1000 -+++ numpy/core/src/npymath/ieee754.c.src 2020-09-20 14:54:03.611889518 +1000 -@@ -8,6 +8,8 @@ - #include "npy_math_private.h" - #include "numpy/utils.h" - -+#include "fenv-constants.h" -+ - #ifndef HAVE_COPYSIGN - double npy_copysign(double x, double y) - { diff --git a/srcpkgs/python-numpy/template b/srcpkgs/python-numpy/template deleted file mode 100644 index 17cce0e73be..00000000000 --- a/srcpkgs/python-numpy/template +++ /dev/null @@ -1,39 +0,0 @@ -# Template file for 'python-numpy' -pkgname=python-numpy -version=1.16.5 -revision=1 -build_style=python2-module -hostmakedepends="python-setuptools python-Cython gcc-fortran" -makedepends="python-devel lapack-devel cblas-devel" -short_desc="Fast and sophisticated array facility to Python2" -maintainer="Orphaned " -license="BSD-3-Clause" -homepage="https://www.numpy.org/" -distfiles="https://github.com/numpy/numpy/archive/v${version}.tar.gz" -checksum=3c82a9b8616e3096a79a2af9c288d8ed4013a10fc7baf3eaf54655309734dadd -alternatives="numpy:f2py:/usr/bin/f2py2" - -post_patch() { - case "${XBPS_TARGET_MACHINE}" in - armv5tel-musl) - cp "${FILESDIR}/fenv-constants.h" numpy/core/src/npymath/ - patch -Np0 -i "${FILESDIR}/fenv-constants.patch" - ;; - esac -} - -pre_build() { - make_build_args+=" ${makejobs}" -} - -post_install() { - # create compat symlinks for .h files - vmkdir ${py2_inc} - ln -sfr ${DESTDIR}/${py2_sitelib}/numpy/core/include/numpy \ - ${DESTDIR}/${py2_inc} - - rm -f ${DESTDIR}/usr/bin/f2py - - rm -f ${DESTDIR}/usr/lib/python*/site-packages/numpy/LICENSE.txt - vlicense LICENSE.txt LICENSE -} diff --git a/srcpkgs/python-numpy/update b/srcpkgs/python-numpy/update deleted file mode 100644 index 8b7d6d06863..00000000000 --- a/srcpkgs/python-numpy/update +++ /dev/null @@ -1 +0,0 @@ -ignore="*a* *b* *rc* *post*"