Install PIL on different version of Python
Currently at 13.37, python is 2.6.6 and also having an "altinstall" version of 2.7.3.
I wanted to install PIL from here: http://taper.alienbase.nl/mirrors/pe...imaging/build/
but it installs on 2.6.6. Maybe I could do a make altinstall as well but didn't tried it since the Slackbuild script have some magic going on (and it includes a patch as well) here: http://taper.alienbase.nl/mirrors/pe...ing.SlackBuild
Is there a way I can install PIL to python 2.7? Is there something like "installpkg pkg.txz altinstall" ? :D
Changing the python version used at build time :
1) Unpack 'Imaging-1.1.7.tar.gz'
2) Edit line 1 in 'setup.py' from : #!/usr/bin/env python
.. to your python-2.7, like : #!/usr/bin/env python27
3) Repack the source to 'Imaging-1.1.7.tar.gz'.
Just built a couple of minutes ago.
What I did is modify the slackbuild script to reference the full path of "/usr/local/bin/python2.7" instead of just "python".
|All times are GMT -5. The time now is 09:53 AM.|