$NetBSD: patch-ab,v 1.5 2007/01/20 15:17:20 joerg Exp $

--- setup.py.orig	2005-03-23 19:16:40.000000000 +0100
+++ setup.py
@@ -79,10 +79,7 @@ from distutils import sysconfig
 from distutils.core import Extension, setup
 from distutils.command.build_ext import build_ext
 
-try:
-    import _tkinter
-except ImportError:
-    _tkinter = None
+_tkinter = None
 
 def add_directory(path, dir, where=None):
     if dir and os.path.isdir(dir) and dir not in path:
@@ -177,9 +174,6 @@ class pil_build_ext(build_ext):
         #
         # add standard directories
 
-        add_directory(library_dirs, "/usr/local/lib")
-        add_directory(include_dirs, "/usr/local/include")
-
         add_directory(library_dirs, "/usr/lib")
         add_directory(include_dirs, "/usr/include")
 
@@ -433,7 +427,7 @@ if __name__ == "__main__":
         package_dir={"": "PIL"},
         packages=[""],
         platforms="Python 1.5.2 and later.",
-        scripts = glob.glob("Scripts/pil*.py"),
+#        scripts = glob.glob("Scripts/pil*.py"),
         url=HOMEPAGE,
         version=VERSION,
         )
