commit: 2e91e8ba15964aba3db63b01d9ab9624ee2c84ca
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 10 07:56:52 2022 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Mon Oct 10 08:18:24 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e91e8ba
dev-python/executing: add asttokens as optional dep
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
dev-python/executing/executing-1.1.1.ebuild | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/dev-python/executing/executing-1.1.1.ebuild
b/dev-python/executing/executing-1.1.1.ebuild
index 26b7519766f7..eb688d352f1f 100644
--- a/dev-python/executing/executing-1.1.1.ebuild
+++ b/dev-python/executing/executing-1.1.1.ebuild
@@ -6,7 +6,7 @@ EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{8..11} )
-inherit distutils-r1
+inherit distutils-r1 optfeature
DESCRIPTION="Get information about what a Python frame is currently doing"
HOMEPAGE="
@@ -22,7 +22,6 @@ LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
-# asttokens is optional runtime dep
BDEPEND="
dev-python/setuptools_scm[${PYTHON_USEDEP}]
test? (
@@ -41,3 +40,7 @@ python_test() {
"${EPYTHON}" tests/test_main.py || die "Tests failed with ${EPYTHON}"
epytest tests/test_pytest.py
}
+
+pkg_postinst() {
+ optfeature "getting node's source code" dev-python/asttokens
+}