Prepare pillow 1.3.

This commit is contained in:
Alex Clark 2010-11-28 15:20:53 -05:00
parent 3b8ae9783e
commit acad11af29

View File

@ -1,11 +1,11 @@
import os import os
import platform
import re import re
import string import string
import struct import struct
import sys import sys
from distutils.command.build_ext import build_ext from distutils.command.build_ext import build_ext
#from distutils.core import Extension
from distutils import sysconfig from distutils import sysconfig
from setuptools import Extension, setup from setuptools import Extension, setup
@ -56,6 +56,11 @@ def _find_version(filename):
return None return None
def _lib_include(root):
# map root to (root/lib, root/include)
return os.path.join(root, "lib"), os.path.join(root, "include")
def _read(file): def _read(file):
return open(file, 'rb').read() return open(file, 'rb').read()
@ -148,7 +153,7 @@ class pil_build_ext(build_ext):
# FIXME: use distutils logging (?) # FIXME: use distutils logging (?)
print "--- using Tcl/Tk libraries at", TCL_ROOT print "--- using Tcl/Tk libraries at", TCL_ROOT
print "--- using Tcl/Tk version", TCL_VERSION print "--- using Tcl/Tk version", TCL_VERSION
TCL_ROOT = libinclude(TCL_ROOT) TCL_ROOT = _lib_include(TCL_ROOT)
break break
else: else:
TCL_ROOT = None TCL_ROOT = None