mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-11 17:56:18 +03:00
Prepare pillow 1.3.
This commit is contained in:
parent
3b8ae9783e
commit
acad11af29
9
setup.py
9
setup.py
|
@ -1,11 +1,11 @@
|
|||
import os
|
||||
import platform
|
||||
import re
|
||||
import string
|
||||
import struct
|
||||
import sys
|
||||
|
||||
from distutils.command.build_ext import build_ext
|
||||
#from distutils.core import Extension
|
||||
from distutils import sysconfig
|
||||
from setuptools import Extension, setup
|
||||
|
||||
|
@ -56,6 +56,11 @@ def _find_version(filename):
|
|||
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):
|
||||
return open(file, 'rb').read()
|
||||
|
||||
|
@ -148,7 +153,7 @@ class pil_build_ext(build_ext):
|
|||
# FIXME: use distutils logging (?)
|
||||
print "--- using Tcl/Tk libraries at", TCL_ROOT
|
||||
print "--- using Tcl/Tk version", TCL_VERSION
|
||||
TCL_ROOT = libinclude(TCL_ROOT)
|
||||
TCL_ROOT = _lib_include(TCL_ROOT)
|
||||
break
|
||||
else:
|
||||
TCL_ROOT = None
|
||||
|
|
Loading…
Reference in New Issue
Block a user