Compass packages in virtualenv were overridden by system main python installation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Compass |
Fix Committed
|
Undecided
|
Compass Team |
Bug Description
System main installation of python has precedence over virtualenv, so even though in wsgi we append virtualenv path to site path, if there is an installation of compass in the main system python environment, it will override the one in virtualenv because we didn't have a clean base line virtualenv for wsgi yet (we don't bother to install cobbler wsgi in another virtualenv )and has to use system python. That would cause interesting or not interesting problems.
Therefore, we use activate_this.py in compass.wsgi to move packages in virtualenv to the front and make sure packages in virutalenv are used for compass.
http://
Per the instruction above, add these two line before site.addsitedir
activate_
execfile(
Changed in compass: | |
assignee: | nobody → Compass Team (syscompass) |
tags: | added: forthport |
Reviewed: https:/ /review. openstack. org/113052 /git.openstack. org/cgit/ stackforge/ compass- core/commit/ ?id=7d77e607cb5 f24bf61e5a904b3 d72f3647bb7a63
Committed: https:/
Submitter: Jenkins
Branch: master
commit 7d77e607cb5f24b f61e5a904b3d72f 3647bb7a63
Author: zhaoxinyu <email address hidden>
Date: Fri Aug 8 18:29:28 2014 -0700
Make packages in virtualenv take precedance.
Duplicate installations of packages in system python environment
will take precedance by default and make unforseeable issues, so
we declare to use packages in virutalenv first and then system packages.
Change-Id: I29a56ffad33dfa bec3ea73a84dbdc 8e943ca8153
Closes-bug: #1354625