mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 01:04:29 +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 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user