Simplejson dependency problem
|Reported by:||dmartinc||Owned by:||pferreir|
When doing easy_install cds-indico, simplejson will be fetched as a dependency. However simplejson is marked as zip-safe = True; therefore, it is installed as a zipped egg file.
First time that it is imported, the zipped egg has to be decompressed into a .eggcache directory. This directory is by default in the /home directory of the user; unless the PYTHON_EGG_CACHE variable is set up.
- Figure a way to specify that when simplejson is installed as a dependency from indico, it should not be zipped. But this does not seem possible.
- Check if there is a PYTHON_EGG_CACHE variable defined, and if not, change it and put it into the indico directory (e.g. /opt/indico/eggcache) with apache permissions.
- Make our own non-zipped simplejson egg (changing 1 line of its code to make it zip-safe=False), host in one of our servers, and fetch the simplejson dependency from there (we need to see how to write in setup.py that simplejson should be fetched from our server). Caveat: we should make a new egg for every new simplejson version.