summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-04-21 16:18:14 +0200
committerMichał Górny <mgorny@gentoo.org>2022-04-21 17:19:34 +0200
commit210184362f468856c1d023517664e68b758f7c14 (patch)
tree85ee2db51d14a09ef2f97915182acc5c28762b8e /dev-python/backports-entry_points_selectable
parentapp-emacs/use-package: fix tests (diff)
downloadgentoo-210184362f468856c1d023517664e68b758f7c14.tar.gz
gentoo-210184362f468856c1d023517664e68b758f7c14.tar.bz2
gentoo-210184362f468856c1d023517664e68b758f7c14.zip
dev-python/backports-entry_points_selectable: Strip namespace
Strip namespace __init__.py to avoid file collisions and/or breakage. Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/backports-entry_points_selectable')
-rw-r--r--dev-python/backports-entry_points_selectable/backports-entry_points_selectable-1.1.1.ebuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/dev-python/backports-entry_points_selectable/backports-entry_points_selectable-1.1.1.ebuild b/dev-python/backports-entry_points_selectable/backports-entry_points_selectable-1.1.1.ebuild
index 5cf1f1d5f6a8..469b1af9da05 100644
--- a/dev-python/backports-entry_points_selectable/backports-entry_points_selectable-1.1.1.ebuild
+++ b/dev-python/backports-entry_points_selectable/backports-entry_points_selectable-1.1.1.ebuild
@@ -27,3 +27,8 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~
distutils_enable_tests pytest
export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
+
+python_compile() {
+ distutils-r1_python_compile
+ rm "${BUILD_DIR}/install$(python_get_sitedir)"/backports/__init__.py || die
+}