[Image-SIG] Overriding 1.1.6 with 1.1.7 in local dir

Seph Soliman ss at konstellation.dk
Wed May 27 11:28:15 CEST 2009


On 27/05/2009, at 10:44, Fredrik Lundh wrote:

> On Tue, May 26, 2009 at 11:53 PM, Seph Soliman <ss at konstellation.dk>  
> 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



More information about the Image-SIG mailing list