diff options
author | Mike Gilbert <floppym@gentoo.org> | 2020-05-19 15:46:09 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2020-05-19 15:47:35 -0400 |
commit | c8b4d4f6e0de55fb7d18119ea06196dae06bc6a6 (patch) | |
tree | 1abf6e73dcdd899665a10092fd7b4d112579cfcc /dev-python/pycparser | |
parent | dev-vcs/repo: version bump to 2.5 (diff) | |
download | gentoo-c8b4d4f6e0de55fb7d18119ea06196dae06bc6a6.tar.gz gentoo-c8b4d4f6e0de55fb7d18119ea06196dae06bc6a6.tar.bz2 gentoo-c8b4d4f6e0de55fb7d18119ea06196dae06bc6a6.zip |
Revert "dev-python/pycparser: trick tests into using CPP variable"
This reverts commit f3af4c3be7962780f471641f0d8d2f6b9c335cdc.
Bug: https://bugs.gentoo.org/719934
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'dev-python/pycparser')
-rw-r--r-- | dev-python/pycparser/pycparser-2.20.ebuild | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/dev-python/pycparser/pycparser-2.20.ebuild b/dev-python/pycparser/pycparser-2.20.ebuild index 4227f14e0bf5..4b222c379ee4 100644 --- a/dev-python/pycparser/pycparser-2.20.ebuild +++ b/dev-python/pycparser/pycparser-2.20.ebuild @@ -5,7 +5,7 @@ EAPI=7 PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 ) -inherit distutils-r1 toolchain-funcs +inherit distutils-r1 DESCRIPTION="C parser and AST generator written in Python" HOMEPAGE="https://github.com/eliben/pycparser" @@ -41,20 +41,9 @@ python_compile() { } python_test() { - # Trick the tests into using CPP variable - # https://bugs.gentoo.org/719934 - local CPP="$(tc-getCPP)" - mkdir -p "${T}"/bin || die - cat > "${T}"/bin/cpp <<-EOF || die - #!/bin/sh - exec ${CPP} "\$@" - EOF - chmod +x "${T}"/bin/cpp || die - local -x PATH="${T}/bin:${PATH}" - # change workdir to avoid '.' import cd tests || die - ${EPYTHON} -m unittest discover -v || die "Tests fail with ${EPYTHON}" + "${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}" } python_install() { |