Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove/reduce global python dependancies #20

Open
smesdaghi opened this issue Aug 5, 2015 · 0 comments
Open

Remove/reduce global python dependancies #20

smesdaghi opened this issue Aug 5, 2015 · 0 comments
Assignees

Comments

@smesdaghi
Copy link
Member

python packages such as osgeo (gdal wrappers) and httplib2 (ssl certificates) are getting installed in the global python. httplib2 didn't used to get installed under 12.04 but under virtual boxe's 14.04 it is already installed globally. Other 14.04 images (like the one used for noblis servers) do not have it installed either. This means that geonode (or something along the way) ends up bringing it in and installing it under the geonode virtual environment at /var/lib/geonode. As a result, when the ssl certs need to be installed in the httplib2 package, their location can be different and therefore cause an error/early termination of the installation process.

We need to make sure that python libraries that geoshape depend are are installed under the geonode virtual environment to reduce changes of the install not working when different os images/versions are used. This is a bit easier said than done because of other install order dependancies but worth doing.

Note that the /var/lib/geonode python environment is linked to the global python through /var/lib/geonode/lib/python2.7/site-packages/_virtualenv_path_extensions.pth. Once we remove dependency of on the global python, we should remove the entry in the virtualenv path extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants