summaryrefslogtreecommitdiff
path: root/graphics/py-Pillow/patches/patch-setup.py
blob: c5490e71967a50da889f68cf99c9abe45439f6e2 (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.5 2015/10/18 15:47:10 adam Exp $

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

--- setup.py.orig	2015-10-01 15:27:21.000000000 +0000
+++ setup.py
@@ -82,11 +82,7 @@ def _lib_include(root):
 def _read(file):
     return open(file, 'rb').read()
 
-try:
-    import _tkinter
-except (ImportError, OSError):
-    # pypy emits an oserror
-    _tkinter = None
+_tkinter = None
 
 
 NAME = 'Pillow'
@@ -760,7 +756,6 @@ setup(
     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',