Mercurial > code > home > repos > light9
changeset 860:8189f27679a1
gtk+PIL visible in virtualenv
Ignore-this: 79764c24661ea89192ba524a38892b5e
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Thu, 06 Jun 2013 03:39:05 +0000 |
parents | 9f771db2b0b6 |
children | 1812165b5acc |
files | makefile |
diffstat | 1 files changed, 20 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/makefile Thu Jun 06 03:19:40 2013 +0000 +++ b/makefile Thu Jun 06 03:39:05 2013 +0000 @@ -7,9 +7,28 @@ eval env/bin/nosetests --with-watch $(NOSEARGS) -install_python_deps: +# needed packages: python-gtk2 python-imaging + +install_python_deps: link_to_sys_packages env/bin/pip install -r pydeps +DP=/usr/lib/python2.7/dist-packages +SP=env/lib/python2.7/site-packages + +link_to_sys_packages: + # http://stackoverflow.com/questions/249283/virtualenv-on-ubuntu-with-no-site-packages + ln -sf $(DP)/glib $(SP)/ + ln -sf $(DP)/gobject $(SP)/ + ln -sf $(DP)/cairo $(SP)/ + ln -sf $(DP)/gtk-2.0 $(SP)/ + ln -sf $(DP)/pygtk.py $(SP)/ + ln -sf $(DP)/pygtk.pth $(SP)/ + ln -sf $(DP)/pygst.pth $(SP)/ + ln -sf $(DP)/pygst.py $(SP)/ + ln -sf $(DP)/gst-0.10 $(SP)/ + ln -sf $(DP)/PIL $(SP)/ + ln -sf $(DP)/PIL.pth $(SP)/ + PYTHON=/usr/bin/pypy PYTHON=/usr/bin/python