Skip to content

Commit

Permalink
Fix deploy error due to new pip / old setuptools conflict
Browse files Browse the repository at this point in the history
Newer versions of pip (>=19.0) don't work with older versions of
setuptools (<40) due to an attribute error.  If
`include_system_packages` is `false` (now the default), this is not an
issue because of the newer setuptools that gets installed into the venv.
However, when it's `true`, which is required for some charms, the
install fails because pip somehow prefers the older system-installed
setuptools over the newer one in the venv. Pinning pip avoids the
problem until we can find a better solution.

See:
  * https://discourse.jujucharms.com/t/wheel-building-fails-during-charm-deployment/1947
  * pypa/pip#6164
  • Loading branch information
johnsca committed Aug 19, 2019
1 parent b62c181 commit e03c398
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions layer.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
includes:
- 'layer:basic'
repo: https://github.com/juju-solutions/charm-ubuntu
options:
basic:
include_system_packages: true

0 comments on commit e03c398

Please sign in to comment.