aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorulion <ulion2002@gmail.com>2013-08-14 22:18:24 +0800
committerulion <ulion2002@gmail.com>2013-08-16 06:56:21 +0800
commit66b585af2d0484b824f5b4a1a9ad5260aca47984 (patch)
tree6e01d78c48f0d0e148a862e5d5931ca07cbe4644 /tools
parent7df421d5612d1df83b9a9e36171960255684a68e (diff)
[Fix] Extract PIL egg into site-packages' subdir to fix load
Diffstat (limited to 'tools')
-rw-r--r--tools/depends/target/pythonmodule-pil/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/depends/target/pythonmodule-pil/Makefile b/tools/depends/target/pythonmodule-pil/Makefile
index a7ad064646..08aafc72f8 100644
--- a/tools/depends/target/pythonmodule-pil/Makefile
+++ b/tools/depends/target/pythonmodule-pil/Makefile
@@ -32,8 +32,9 @@ $(LIBDYLIB): $(PLATFORM)
cd $(PLATFORM); $(CROSSFLAGS) $(NATIVEPREFIX)/bin/python setup.py build -x bdist_egg --plat-name $(OS)-$(CPU)
.installed-$(PLATFORM): $(LIBDYLIB)
- mkdir -p $(PREFIX)/lib/python2.6/site-packages
- cp $(LIBDYLIB) $(PREFIX)/lib/python2.6/site-packages
+ mkdir -p $(PREFIX)/lib/python2.6/site-packages/PIL
+ unzip $(LIBDYLIB) -d $(PREFIX)/lib/python2.6/site-packages/PIL/
+ echo 'PIL' > $(PREFIX)/lib/python2.6/site-packages/PIL.pth
touch $@
clean: