diff --git a/dev-python/theano/theano-1.0.5.ebuild b/dev-python/theano/theano-1.0.5-r1.ebuild similarity index 83% rename from dev-python/theano/theano-1.0.5.ebuild rename to dev-python/theano/theano-1.0.5-r1.ebuild index bf10d34c41e12..aa340176494e1 100644 --- a/dev-python/theano/theano-1.0.5.ebuild +++ b/dev-python/theano/theano-1.0.5-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -42,6 +42,12 @@ python_test() { nosetests --verbosity=3 -e test_format_flake8 || die } +# https://dev.gentoo.org/~mgorny/python-guide/concept.html#packaging-pkgutil-style-namespaces-in-gentoo +python_install() { + rm "${BUILD_DIR}"/lib/bin/__init__.py || die + distutils-r1_python_install +} + pkg_postinst() { optfeature "Make picture of Theano computation graph" dev-python/pydot-ng optfeature "Required for GPU/CPU code generation" dev-python/pygpu