update numpy-1.17.4

This commit is contained in:
Andreas Billmeier 2020-01-31 00:15:43 +01:00
parent 2268983eee
commit 37c202ef2f
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
3 changed files with 159 additions and 0 deletions

View File

@ -9,6 +9,7 @@
* bump pyps4-2ndscreen-1.0.6
* bump pre-commit-2.0.1
* update homeassistant-0.105.0_beta1
* update numpy-1.17.4
2020-01-29
* remove old simplisafe-python ebuilds

View File

@ -6,6 +6,7 @@ DIST numpy-1.16.4.zip 5122740 BLAKE2B 702abad76a2d30fc99c18cd17d1d55ce62d7e45c5a
DIST numpy-1.17.0.zip 6486301 BLAKE2B 74d6b2e044edf9b01942934649b91068a114a05932d6652828c63e5235fb5f8cb233ab2da76c5e49e7321b9132c0f65c7520a23cd4734136767c4c1a8dc65b9d SHA512 4a5945688cc5c7d2e99327200077472a45b65aaef786b83f15a1f79f66512db5465314426107b9e261ae34324de52f8566fd5ddb22400c3d647d8e730e58ccd9
DIST numpy-1.17.1.zip 6491116 BLAKE2B e0a68295384ad2e6387049878332daf43693a8d9164a54bb6ca824ece93d107ce8f00c3318232a8ef54478c41a888fc271e0e357168ad0f95b24138a4e95eafb SHA512 7df8df2b6b148172832930b226b5477088a72f5adbff120d77fd9b77a8440c951f7f9784c346fb7dba9ac969d225346e18dfbe1625a5ce243c99635dc7ba0996
DIST numpy-1.17.3.zip 6363960 BLAKE2B db7b87078b537f5f840929c6a9ea5cb02642823cb622c62ca02d75a43e5e910f5cbc6c749eada7e90ccdf76751f87e5c1c766cd4e36af0f8d3cb3bf714b4535f SHA512 00b3a7ea78edeb76f9374bd2de9fcff14abdc9284da5b5579ea81e88d00b18427172c53ea57fdac79f873de8a483139da18ea97b7066666a48d989133c85b394
DIST numpy-1.17.4.zip 6366657 BLAKE2B 89f729bb0740fa721dfe8d1165094a96302fde1e8c272689c11cb4a9bb39d11afaf6eda3ded8a370333b47b9d1ee25e8cb0a602c8cf44964612342c50ea5824f SHA512 f3264be7152437d71718da4728222962013ebd7fe02288d5063f1c763d1c4eee26485c27e8088f4dff79a4d491bc9f191849748c6007d093d22e89c6bff317f3
DIST numpy-html-1.16.4.zip 12097069 BLAKE2B db1f897342fbc80a761fbaee7b0eee3761dbfa04ef6c46a137bb2392caaec8256580467ce06498cceeada2639151a1ec75dafab484d64cb897c008727d6d32a5 SHA512 c44c5e1e0cb22f9dd46fe9e302030292d85e567456178fee296746a414271634e906509fb6665ac63fbfebdd13c5383574f0aa47b4fbc639063da31addc3316a
DIST numpy-ref-1.16.4.pdf 5176571 BLAKE2B 9a875ebd1473b241d463d810a6d191581aef961158f2f82959671b554ace3ad482795e4f3e1cb7dd4632cff926c1e864c675a7624fb0f4e4f297948bf50f0564 SHA512 983ba0f34a70c011886bdbc9fd8f3f75a3a967ca29217acc76fa46e7da391296a5628c9a557ac76efb393271abfb8ee4f376d401c1cc1e5c30622e54b9325d09
DIST numpy-user-1.16.4.pdf 596203 BLAKE2B da3ad1f0ec1c965d20656f73a970911cbb58efa73a5df89e2e6485e0dd763f483e35eea1395ac919bf35d496fb216cee954fc5d31edebc1796a24a2a7a2d12b9 SHA512 3083008547213bfa98ffa5cd8e2cea13f6947f42d83aef61502a2a852b0d5f27d727c76b42d281d7a2f4f76c78e88b12ee3d9b164b39fe1f0213ace7097357d6
@ -15,4 +16,5 @@ EBUILD numpy-1.16.4.ebuild 3712 BLAKE2B 2f6c812577bcdaadff6d142f3e22b8611867a535
EBUILD numpy-1.17.0.ebuild 3700 BLAKE2B 7c9547e5f15bd4629f2712055e99d235cd9b9ccabd73d447cc2ff5f16664077375a4d0bdc710bf990c870e1f924b0b53836d0df172c2682f616fff7b96e4dd88 SHA512 1884f23ebe413424a58f8490bcb9b2f25dc58d3a2a0018d78459ca51c4e127a9a801156ff7fbd50147d4cff4d1f64cafd375625815fb6a2cf9d2e20e0db1860f
EBUILD numpy-1.17.1.ebuild 3700 BLAKE2B 7c9547e5f15bd4629f2712055e99d235cd9b9ccabd73d447cc2ff5f16664077375a4d0bdc710bf990c870e1f924b0b53836d0df172c2682f616fff7b96e4dd88 SHA512 1884f23ebe413424a58f8490bcb9b2f25dc58d3a2a0018d78459ca51c4e127a9a801156ff7fbd50147d4cff4d1f64cafd375625815fb6a2cf9d2e20e0db1860f
EBUILD numpy-1.17.3-r1.ebuild 4078 BLAKE2B 430b7ae1a01e549a20ff8ce4ff500e0705dac04921ba0e37431abfd2a01e33b0906ab8041279028819ef5d6de7bc8082dcfdc4845058d4fcd785f53284afe924 SHA512 ab65afd707b1bd92b5dbb5182a9dac653f2f51638b3ef414cbc1f3cf3d398c0e4b0043cdd1614dade4a078e6e89e90f176d66798621b7bf3cc6b35de872fec93
EBUILD numpy-1.17.4.ebuild 4085 BLAKE2B 6af0c8aee1a4036ba4bb6bf73b39cce77aca6a7404505ea0842bcd4d5ba42b272e9e35c5a08fe18bb94ff8dd0c4024c2bd4fd3db98f67d16a93b73c7254c62da SHA512 833558bcdf3abc6fb3e92d2d20ea6cf9c8b6d7e318f509c3bca6099d65cd3d31cff873a45cc3bcf84a3f669b7166968d190a568463d5b21a0963cb8506396161
MISC metadata.xml 461 BLAKE2B 8832954e31cde79a9535602fb4c7abdf6ec38271c3c5823d2018be1a14fc4b4d5cbe7dac755979b10e76ac8a7579debf1518646d3a55182979893af71bfa5171 SHA512 f687204c86bee2daec69b88f6d2508ecb92ba494d728a19c209d440b5168c52d4a5ce8707b96b8688d6560d7268c23a4ba19dc33477395fd41f7e63ab3ad3653

View File

@ -0,0 +1,156 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
PYTHON_COMPAT=( python3_{6,7,8} )
PYTHON_REQ_USE="threads(+)"
FORTRAN_NEEDED=lapack
inherit distutils-r1 flag-o-matic fortran-2 multiprocessing toolchain-funcs
DOC_PV="1.16.4"
DESCRIPTION="Fast array and numerical python library"
HOMEPAGE="https://www.numpy.org"
SRC_URI="
mirror://pypi/${PN:0:1}/${PN}/${P}.zip
doc? (
https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-html.zip -> numpy-html-${DOC_PV}.zip
https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-ref.pdf -> numpy-ref-${DOC_PV}.pdf
https://numpy.org/doc/$(ver_cut 1-2 ${DOC_PV})/numpy-user.pdf -> numpy-user-${DOC_PV}.pdf
)"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~arm64"
IUSE="doc lapack test"
RESTRICT="!test? ( test )"
RDEPEND="
lapack? (
virtual/cblas
virtual/lapack
)"
DEPEND="${RDEPEND}"
BDEPEND="app-arch/unzip
dev-python/setuptools[${PYTHON_USEDEP}]
lapack? ( virtual/pkgconfig )
test? (
dev-python/pytest[${PYTHON_USEDEP}]
)"
#PATCHES=(
# "${FILESDIR}"/${PN}-1.15.4-no-hardcode-blas.patch
#)
src_unpack() {
default
if use doc; then
unzip -qo "${DISTDIR}"/numpy-html-${DOC_PV}.zip -d html || die
fi
}
pc_incdir() {
$(tc-getPKG_CONFIG) --cflags-only-I $@ | \
sed -e 's/^-I//' -e 's/[ ]*-I/:/g' -e 's/[ ]*$//' -e 's|^:||'
}
pc_libdir() {
$(tc-getPKG_CONFIG) --libs-only-L $@ | \
sed -e 's/^-L//' -e 's/[ ]*-L/:/g' -e 's/[ ]*$//' -e 's|^:||'
}
pc_libs() {
$(tc-getPKG_CONFIG) --libs-only-l $@ | \
sed -e 's/[ ]-l*\(pthread\|m\)\([ ]\|$\)//g' \
-e 's/^-l//' -e 's/[ ]*-l/,/g' -e 's/[ ]*$//' \
| tr ',' '\n' | sort -u | tr '\n' ',' | sed -e 's|,$||'
}
python_prepare_all() {
if use lapack; then
append-ldflags "$($(tc-getPKG_CONFIG) --libs-only-other cblas lapack)"
local incdir="${EPREFIX}"/usr/include
local libdir="${EPREFIX}"/usr/$(get_libdir)
cat >> site.cfg <<-EOF || die
[blas]
include_dirs = $(pc_incdir cblas):${incdir}
library_dirs = $(pc_libdir cblas blas):${libdir}
blas_libs = $(pc_libs cblas blas)
[lapack]
library_dirs = $(pc_libdir lapack):${libdir}
lapack_libs = $(pc_libs lapack)
EOF
else
export {ATLAS,PTATLAS,BLAS,LAPACK,MKL}=None
fi
export CC="$(tc-getCC) ${CFLAGS}"
append-flags -fno-strict-aliasing
# See progress in http://projects.scipy.org/scipy/numpy/ticket/573
# with the subtle difference that we don't want to break Darwin where
# -shared is not a valid linker argument
if [[ ${CHOST} != *-darwin* ]]; then
append-ldflags -shared
fi
# only one fortran to link with:
# linking with cblas and lapack library will force
# autodetecting and linking to all available fortran compilers
append-fflags -fPIC
if use lapack; then
NUMPY_FCONFIG="config_fc --noopt --noarch"
# workaround bug 335908
[[ $(tc-getFC) == *gfortran* ]] && NUMPY_FCONFIG+=" --fcompiler=gnu95"
fi
# don't version f2py, we will handle it.
sed -i -e '/f2py_exe/s: + os\.path.*$::' numpy/f2py/setup.py || die
# disable fuzzed tests
find numpy/*/tests -name '*.py' -exec sed -i \
-e 's:def \(.*_fuzz\):def _\1:' {} + || die
# very memory- and disk-hungry
sed -i -e 's:test_large_zip:_&:' numpy/lib/tests/test_io.py || die
distutils-r1_python_prepare_all
}
python_compile() {
export MAKEOPTS=-j1 #660754
local python_makeopts_jobs=""
python_is_python3 || python_makeopts_jobs="-j $(makeopts_jobs)"
distutils-r1_python_compile \
${python_makeopts_jobs} \
${NUMPY_FCONFIG}
}
python_test() {
distutils_install_for_testing --single-version-externally-managed \
--record "${TMPDIR}/record.txt" ${NUMPY_FCONFIG}
cd "${TMPDIR}" || die
"${EPYTHON}" -c "
import numpy, sys
r = numpy.test(label='full', verbose=3)
sys.exit(0 if r else 1)" || die "Tests fail with ${EPYTHON}"
}
python_install() {
distutils-r1_python_install ${NUMPY_FCONFIG}
}
python_install_all() {
local DOCS=( THANKS.txt )
if use doc; then
local HTML_DOCS=( "${WORKDIR}"/html/. )
DOCS+=( "${DISTDIR}"/${PN}-{user,ref}-${DOC_PV}.pdf )
fi
distutils-r1_python_install_all
}