summaryrefslogtreecommitdiff
path: root/graphics/py-Pillow/patches/patch-setup.py
blob: f17e0198c48ae1d4553df230486314e58e8063c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
$NetBSD: patch-setup.py,v 1.10 2017/01/29 12:46:45 adam Exp $

* Prevent to detect optional tkinter.
* Disable demo programs.

--- setup.py.orig	2017-01-02 11:47:11.000000000 +0000
+++ setup.py
@@ -99,11 +99,7 @@ def _read(file):
         return fp.read()
 
 
-try:
-    import _tkinter
-except (ImportError, OSError):
-    # pypy emits an oserror
-    _tkinter = None
+_tkinter = None
 
 NAME = 'Pillow'
 PILLOW_VERSION = '4.0.0'
@@ -771,7 +767,6 @@ try:
           ext_modules=[Extension("PIL._imaging", ["_imaging.c"])],
           include_package_data=True,
           packages=find_packages(),
-          scripts=glob.glob("Scripts/*.py"),
           install_requires=['olefile'],
           test_suite='nose.collector',
           keywords=["Imaging", ],