dev-python/pillow: don't install example scripts in /usr/bin

We already install them in /usr/share/doc/${PF}/examples.
This resolves a file collision with dev-python/cgkit.

Bug: https://bugs.gentoo.org/600694

Package-Manager: portage-2.3.2_p11
This commit is contained in:
Mike Gilbert
2016-11-27 16:36:34 -05:00
parent e2a7229e1e
commit 691a6ebb37
2 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
diff --git a/setup.py b/setup.py
index 5257e748..410ce788 100644
--- a/setup.py
+++ b/setup.py
@@ -746,7 +746,6 @@ setup(name=NAME,
ext_modules=[Extension("PIL._imaging", ["_imaging.c"])],
include_package_data=True,
packages=find_packages(),
- scripts=glob.glob("Scripts/*.py"),
test_suite='nose.collector',
keywords=["Imaging", ],
license='Standard PIL License',

View File

@@ -48,6 +48,10 @@ S="${WORKDIR}/${MY_P}"
# See _render and _clean in Tests/test_imagefont.py
DISTUTILS_IN_SOURCE_BUILD=1
PATCHES=(
"${FILESDIR}/pillow-3.4.2-no-scripts.patch"
)
python_prepare_all() {
# Disable all the stuff we don't want.
local f