diff --git a/dev-python/thriftrw/files/thriftrw-1.8.1-no-install-examples.patch b/dev-python/thriftrw/files/thriftrw-1.8.1-no-install-examples.patch new file mode 100644 index 0000000000..0cc8641076 --- /dev/null +++ b/dev-python/thriftrw/files/thriftrw-1.8.1-no-install-examples.patch @@ -0,0 +1,11 @@ +--- a/setup.py ++++ b/setup.py +@@ -148,7 +148,7 @@ + author='Abhinav Gupta', + author_email='abg@uber.com', + url='https://github.com/thriftrw/thriftrw-python', +- packages=find_packages(exclude=('tests', 'tests.*')), ++ packages=find_packages(exclude=('tests', 'tests.*', 'examples', 'examples*')), + license='MIT', + install_requires=['six', 'ply'], + tests_require=['pytest', 'mock'], diff --git a/dev-python/thriftrw/thriftrw-1.8.1.ebuild b/dev-python/thriftrw/thriftrw-1.8.1.ebuild index 230a5c2003..7ae0e668c9 100644 --- a/dev-python/thriftrw/thriftrw-1.8.1.ebuild +++ b/dev-python/thriftrw/thriftrw-1.8.1.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI="8" +EAPI=8 PYTHON_COMPAT=( python3_{8..10} ) @@ -26,4 +26,6 @@ DEPEND=" ) " +PATCHES=( "${FILESDIR}/${P}-no-install-examples.patch" ) + distutils_enable_tests pytest