Opentaste / bombolone

Bombolone is a tasty Content Management System for Python based on Flask, MongoDB, AngularJS, Sass and Bootstrap. It's designed to be a simple, flexible toolset for projects of any size.
Other
74 stars 20 forks source link

Pillow dependencies #21

Open fernandojunior opened 9 years ago

fernandojunior commented 9 years ago

I got some errors when tried to install Pillow on ubuntu. "UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 44: ordinal not in range(128)", for example.

Pillow docs say that many of Pillow’s features require external libraries (libjpeg, zlib, libtiff, libfreetype, etc.).

Here a script to install some dependencies on ubuntu (https://gist.github.com/fernandojunior/17b027e3d5996721abe3)

Zizzamia commented 9 years ago

@diegorusso what do you think about it? @fernandojunior Thanks for the script, please send a pull request if you would like change the readme. :)

diegorusso commented 9 years ago

What the script does is ok. What I don't like is how it does it. What if one of these commands fail? I see also dependencies for two different releases of Ubuntu. Two options here:

What if someone is using an rpm based linux? Here just an idea: http://www.mirkopagliai.it/bash-scripting-check-for-and-install-missing-dependencies/

I hope this helps.

devilicecream commented 9 years ago

@diegorusso I like the idea of an automated install script for Pillow. Not sure though how to integrate the script into the installation process. What do you think should be the best way to proceed? Docs or script? I'll fix @fernandojunior 's script if needed.

diegorusso commented 9 years ago

@devilicecream I would prefer a script but I think now it is not so critical. If you have time to fix the script, off you go. If don't, just create a nice README that covers at least Ubuntu and an rpm based distribution.