Re: [Image-SIG] Overriding 1.1.6 with 1.1.7 in local dir
On 27/05/2009, at 10:44, Fredrik Lundh wrote: On Tue, May 26, 2009 at 11:53 PM, Seph Soliman wrote: Would it be possible to compile and run a local version of PIL 1.1.7 with Django even if 1.1.6 is installed in site-packages in the python installation? We're running Django through Apache with mod_python currently. Yes, you can install it locally and then make sure the installation directory comes before site-packages in sys.path (e.g. by adding it to PYTHONPATH, or by manipulating sys.path in settings.py). If you install it in DIR, you may want to add both DIR and DIR/PIL to the path to make sure that both "import Image" and "from PIL import Image" works properly (if you always use the latter form, you only need DIR in the path). Very thourough answer. I appreciate it, thank you. :-) Regards Seph ___ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig
Re: [Image-SIG] Overriding 1.1.6 with 1.1.7 in local dir
On Tue, May 26, 2009 at 11:53 PM, Seph Soliman wrote: > Would it be possible to compile and run a local version of PIL 1.1.7 with > Django even if 1.1.6 is installed in site-packages in the python > installation? We're running Django through Apache with mod_python currently. Yes, you can install it locally and then make sure the installation directory comes before site-packages in sys.path (e.g. by adding it to PYTHONPATH, or by manipulating sys.path in settings.py). If you install it in DIR, you may want to add both DIR and DIR/PIL to the path to make sure that both "import Image" and "from PIL import Image" works properly (if you always use the latter form, you only need DIR in the path). ___ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig