[Pythonmac-SIG] which python pil?
Calvin
calvin at xmission.com
Thu Jun 5 18:20:36 EDT 2003
> > what I want to know is will it build pil with jpeg
> > support if I have the jpeg libs installed?
> Yes. If you use Package Manager to install PIL it will install the jpeg
> reader. If you install a binary PIL through PackMan this happens
> automatically (because I built the PIL distribution on a system where
> libjpeg was available), if you install PIL from source it will work
> correctly if you've installed libjpeg through fink.
well, I tried doing it through source, and I don't like fink, so I tried
it the old fashioned way. it didn't work. I can keep fiddling, but how
install pil with a package manager? Nothing on the PIL website
> I haven't done it, but I'm interested. And as you say you've got more
> questions than answers: if you can try building MySQLdb and give me a
> recipe I'll add it to the package manager.
hah! well I did do it. I followed the instructions for mysql install from
here:
http://www.entropy.ch/software/macosx/mysql/
here are the basic instructions for MySQLdb:
$ tar xfz MySQL-python-0.9.2.tar.gz
$ cd MySQL-python-0.9.2
$ python setup.py build
$ su
$ python setup.py install
To get it to work I had to make the following changes to setup.py
modify setup.py:
include_dirs = [
'/usr/local/mysql/include'
]
library_dirs = [
'/usr/local/mysql/lib'
]
also:
elif sys.platform[:6] == "darwin": # Mac OS X
include_dirs.append('/usr/local/mysql/include')
library_dirs.append('/usr/local/mysql/lib')
and it seems work okay. it imports anyway...yeah it works just fine.
EXCEPT for through apache!
here is sys.path in Apache:
['/Library/WebServer/Documents',
'//Library/Frameworks/Python.framework/Versions/2.3/lib/python23.zip',
'//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3',
'//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-darwin',
'//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac',
'//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac/lib-scriptpackages',
'//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-tk',
'//Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/lib-dynload']
No site-packages...which is where MySQLdb lives. How can I fix this?
oh, and testing out MySQLdb just now I discovered I have no readline!
aaaaaaarrrrrrrgggggghhhhhhhhhh!
i installed it before installing the dmg of 2.3b1 How can I fix this?
you can find my complete installation instructions at
166.70.118.134/Install_procedure.txt At the end of which is my little cgi
test script. The install_procedure.txt has my apache mods, everything i
need to do to get a complete web system working. this one's still under
refinement (eg pil).
why would apache have a different python path?
thank you for your help.
-calvin
More information about the Pythonmac-SIG
mailing list