mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-13 16:06:59 +02:00
dev-python/cython: Sync with Gentoo
It's from Gentoo commit 21e4f05148f1c288b55c94823cf425bacc723af0.
This commit is contained in:
parent
2acb0ac1d1
commit
99b27afd66
@ -1,4 +1,3 @@
|
|||||||
DIST cython-0.29.34.gh.tar.gz 2114639 BLAKE2B c5f70fd3e6074d9030a1035bc98d71b703e0f391b61bd91f3ffba2c35a29a98b9ff8ef2047e7c75743ead280f0f06a924abe84ae8bf7696b65da662a3c58ee0c SHA512 51679d1304d0f87dfb51e60c753f1ce60027f855a91cf130a5dcf84353884a7dcf09c01701945ae2f9173f8f095890c377d5faac28c2f01d7f764609c0130411
|
|
||||||
DIST cython-0.29.35.gh.tar.gz 2115190 BLAKE2B ac23abbd2b560ee52a79840d995a4cf36ddb3a8705b9327010f1ad6add8028185c15703efcc1d59b581d65b5de38e123c0f07c36fe6ffe54a6efee7512161344 SHA512 35d679d94e1f731e004b83fb4ae0d569703b0800c913012308146b1c54463ce12cb1cf3733e24162fb357f179444c5ca31108a37850e6c749ddebac5175119f5
|
|
||||||
DIST cython-0.29.36.gh.tar.gz 2115333 BLAKE2B 6d43779c7222ff65d7de3a35ec18ef636480807d53480a8f94cc8c92d462fcc2f4d201a3bbf6e840a11fd33025e32c53f85626b05c131d10eed2859cdca7eb2d SHA512 a086fe1a11290cd3c870b891e61a0a0e2595bab9c26888024a758b6950c07059346d682fa9349e46c0af89805abbdd750059b3189960b8ce18007dfb5eb4391a
|
DIST cython-0.29.36.gh.tar.gz 2115333 BLAKE2B 6d43779c7222ff65d7de3a35ec18ef636480807d53480a8f94cc8c92d462fcc2f4d201a3bbf6e840a11fd33025e32c53f85626b05c131d10eed2859cdca7eb2d SHA512 a086fe1a11290cd3c870b891e61a0a0e2595bab9c26888024a758b6950c07059346d682fa9349e46c0af89805abbdd750059b3189960b8ce18007dfb5eb4391a
|
||||||
DIST cython-3.0.0.gh.tar.gz 2713478 BLAKE2B 16be50b463cf155417fee02b4529bbde8c4402bac0098ddf2cb05e33ac4c5b455bf7595b046b2bc6edcc8121f2c6be3b7af60c3c721a37bebcf4c654cd41a43f SHA512 a9bf6f0a78accd0624bc2a61329541d97d60257ae3a6b6601f73bd9122427a3d460129b317f000d3061a4dfe3e6a6de59342354862ded13e85c7eb622ee39f9a
|
DIST cython-3.0.0.gh.tar.gz 2713478 BLAKE2B 16be50b463cf155417fee02b4529bbde8c4402bac0098ddf2cb05e33ac4c5b455bf7595b046b2bc6edcc8121f2c6be3b7af60c3c721a37bebcf4c654cd41a43f SHA512 a9bf6f0a78accd0624bc2a61329541d97d60257ae3a6b6601f73bd9122427a3d460129b317f000d3061a4dfe3e6a6de59342354862ded13e85c7eb622ee39f9a
|
||||||
|
DIST cython-3.0.2.gh.tar.gz 2744583 BLAKE2B f631891870a6ce24acf2bcde75ebcb9775cf0df7840fe9d7b138cfdea64d54e9253a53d35d892a9086f251c1294d9414eec8521218d031840a3cd06903fefb86 SHA512 f55be138efdca6ca61bd39c6f2fab736244328a170a6f6c9bda87036e022c846930b209e9e9101fad889cb179d6e60034ba6f299f14b3056536d46235b438eb7
|
||||||
|
@ -1,92 +0,0 @@
|
|||||||
# Copyright 1999-2023 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
DISTUTILS_EXT=1
|
|
||||||
DISTUTILS_USE_PEP517=setuptools
|
|
||||||
PYTHON_COMPAT=( python3_{9..11} pypy3 )
|
|
||||||
PYTHON_REQ_USE="threads(+)"
|
|
||||||
|
|
||||||
inherit distutils-r1 toolchain-funcs elisp-common
|
|
||||||
|
|
||||||
DESCRIPTION="A Python to C compiler"
|
|
||||||
HOMEPAGE="
|
|
||||||
https://cython.org/
|
|
||||||
https://github.com/cython/cython/
|
|
||||||
https://pypi.org/project/Cython/
|
|
||||||
"
|
|
||||||
SRC_URI="
|
|
||||||
https://github.com/cython/cython/archive/${PV}.tar.gz
|
|
||||||
-> ${P}.gh.tar.gz
|
|
||||||
"
|
|
||||||
|
|
||||||
LICENSE="Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
|
||||||
IUSE="emacs test"
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
emacs? ( >=app-editors/emacs-23.1:* )
|
|
||||||
"
|
|
||||||
BDEPEND="
|
|
||||||
${RDEPEND}
|
|
||||||
test? (
|
|
||||||
$(python_gen_cond_dep '
|
|
||||||
dev-python/numpy[${PYTHON_USEDEP}]
|
|
||||||
' python3_{8..10})
|
|
||||||
)
|
|
||||||
"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/${PN}-0.29.22-spawn-multiprocessing.patch"
|
|
||||||
"${FILESDIR}/${PN}-0.29.23-test_exceptions-py310.patch"
|
|
||||||
"${FILESDIR}/${PN}-0.29.23-pythran-parallel-install.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
SITEFILE=50cython-gentoo.el
|
|
||||||
|
|
||||||
distutils_enable_sphinx docs
|
|
||||||
|
|
||||||
python_compile() {
|
|
||||||
# Python gets confused when it is in sys.path before build.
|
|
||||||
local -x PYTHONPATH=
|
|
||||||
|
|
||||||
distutils-r1_python_compile
|
|
||||||
}
|
|
||||||
|
|
||||||
python_compile_all() {
|
|
||||||
use emacs && elisp-compile Tools/cython-mode.el
|
|
||||||
}
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
if has "${EPYTHON}" pypy3 python3.11; then
|
|
||||||
einfo "Skipping tests on ${EPYTHON} (xfail)"
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
tc-export CC
|
|
||||||
# https://github.com/cython/cython/issues/1911
|
|
||||||
local -x CFLAGS="${CFLAGS} -fno-strict-overflow"
|
|
||||||
"${PYTHON}" runtests.py -vv --work-dir "${BUILD_DIR}"/tests ||
|
|
||||||
die "Tests fail with ${EPYTHON}"
|
|
||||||
}
|
|
||||||
|
|
||||||
python_install_all() {
|
|
||||||
local DOCS=( CHANGES.rst README.rst ToDo.txt USAGE.txt )
|
|
||||||
distutils-r1_python_install_all
|
|
||||||
|
|
||||||
if use emacs; then
|
|
||||||
elisp-install ${PN} Tools/cython-mode.*
|
|
||||||
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
use emacs && elisp-site-regen
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
use emacs && elisp-site-regen
|
|
||||||
}
|
|
@ -1,94 +0,0 @@
|
|||||||
# Copyright 1999-2023 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=8
|
|
||||||
|
|
||||||
DISTUTILS_EXT=1
|
|
||||||
DISTUTILS_USE_PEP517=setuptools
|
|
||||||
PYTHON_TESTED=( python3_{10..11} )
|
|
||||||
# 3.12 not tested yet for https://github.com/cython/cython/issues/5285.
|
|
||||||
PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" python3_12 pypy3 )
|
|
||||||
PYTHON_REQ_USE="threads(+)"
|
|
||||||
|
|
||||||
inherit distutils-r1 multiprocessing toolchain-funcs elisp-common
|
|
||||||
|
|
||||||
DESCRIPTION="A Python to C compiler"
|
|
||||||
HOMEPAGE="
|
|
||||||
https://cython.org/
|
|
||||||
https://github.com/cython/cython/
|
|
||||||
https://pypi.org/project/Cython/
|
|
||||||
"
|
|
||||||
SRC_URI="
|
|
||||||
https://github.com/cython/cython/archive/${PV}.tar.gz
|
|
||||||
-> ${P}.gh.tar.gz
|
|
||||||
"
|
|
||||||
|
|
||||||
LICENSE="Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 ~arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
|
||||||
IUSE="emacs test"
|
|
||||||
RESTRICT="!test? ( test )"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
emacs? ( >=app-editors/emacs-23.1:* )
|
|
||||||
"
|
|
||||||
BDEPEND="
|
|
||||||
${RDEPEND}
|
|
||||||
test? (
|
|
||||||
$(python_gen_cond_dep '
|
|
||||||
dev-python/numpy[${PYTHON_USEDEP}]
|
|
||||||
' python3_{10..11})
|
|
||||||
)
|
|
||||||
"
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${FILESDIR}/${PN}-0.29.22-spawn-multiprocessing.patch"
|
|
||||||
"${FILESDIR}/${PN}-0.29.23-test_exceptions-py310.patch"
|
|
||||||
"${FILESDIR}/${PN}-0.29.23-pythran-parallel-install.patch"
|
|
||||||
)
|
|
||||||
|
|
||||||
SITEFILE=50cython-gentoo.el
|
|
||||||
|
|
||||||
distutils_enable_sphinx docs
|
|
||||||
|
|
||||||
python_compile() {
|
|
||||||
# Python gets confused when it is in sys.path before build.
|
|
||||||
local -x PYTHONPATH=
|
|
||||||
|
|
||||||
distutils-r1_python_compile
|
|
||||||
}
|
|
||||||
|
|
||||||
python_compile_all() {
|
|
||||||
use emacs && elisp-compile Tools/cython-mode.el
|
|
||||||
}
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
if ! has "${EPYTHON/./_}" "${PYTHON_TESTED[@]}"; then
|
|
||||||
einfo "Skipping tests on ${EPYTHON} (xfail)"
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
|
|
||||||
tc-export CC
|
|
||||||
# https://github.com/cython/cython/issues/1911
|
|
||||||
local -x CFLAGS="${CFLAGS} -fno-strict-overflow"
|
|
||||||
"${PYTHON}" runtests.py -vv -j "$(makeopts_jobs)" --work-dir "${BUILD_DIR}"/tests ||
|
|
||||||
die "Tests fail with ${EPYTHON}"
|
|
||||||
}
|
|
||||||
|
|
||||||
python_install_all() {
|
|
||||||
local DOCS=( CHANGES.rst README.rst ToDo.txt USAGE.txt )
|
|
||||||
distutils-r1_python_install_all
|
|
||||||
|
|
||||||
if use emacs; then
|
|
||||||
elisp-install ${PN} Tools/cython-mode.*
|
|
||||||
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
use emacs && elisp-site-regen
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
use emacs && elisp-site-regen
|
|
||||||
}
|
|
@ -25,7 +25,7 @@ SRC_URI="
|
|||||||
|
|
||||||
LICENSE="Apache-2.0"
|
LICENSE="Apache-2.0"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
||||||
IUSE="emacs test"
|
IUSE="emacs test"
|
||||||
RESTRICT="!test? ( test )"
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ S=${WORKDIR}/${MY_P}
|
|||||||
|
|
||||||
LICENSE="Apache-2.0"
|
LICENSE="Apache-2.0"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ~ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
|
||||||
IUSE="test"
|
IUSE="test"
|
||||||
RESTRICT="!test? ( test )"
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user