Skip to content

Commit 20c5571

Browse files
committed
Fix deploy error due to new pip / old setuptools conflict
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
1 parent 7cb1b66 commit 20c5571

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wheelhouse.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pip>=18.1,<19.2
1+
pip>=18.1,<19.0
22
setuptools<42
33
setuptools-scm<=1.17.0
44
charmhelpers>=0.4.0,<1.0.0

0 commit comments

Comments
 (0)