#20 closed enhancement (fixed)
Simplejson dependency problem
Reported by: | dmartinc | Owned by: | pferreir |
---|---|---|---|
Priority: | normal | Milestone: | v0.97.0 |
Component: | Installation | Version: | 0.97.0 |
Keywords: | install simplejson | Cc: |
Description
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.
Possible solutions:
- 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.
Change History (3)
comment:1 Changed 6 years ago by pferreir
- Owner set to pferreir
- Status changed from new to assigned
comment:2 Changed 6 years ago by jose.pedro.ferreira@…
- Resolution set to fixed
- Status changed from assigned to closed
comment:3 Changed 5 years ago by Pedro Ferreira <jose.pedro.ferreira@…>
Note: See
TracTickets for help on using
tickets.
commit 75807a27c45520f867b085a1055ffd94703535dd
Author: Pedro Ferreira <jose.pedro.ferreira@…>
Date: Wed Nov 25 17:49:27 2009 +0100