Do never install from wheels
... | @@ -39,6 +39,8 @@ import tempfile | ... | @@ -39,6 +39,8 @@ import tempfile |
import zc.buildout | import zc.buildout | ||
import warnings | import warnings | ||
WHL_DIST = pkg_resources.EGG_DIST + 1 | |||
|
|||
warnings.filterwarnings( | warnings.filterwarnings( | ||
'ignore', '.+is being parsed as a legacy, non PEP 440, version') | 'ignore', '.+is being parsed as a legacy, non PEP 440, version') | ||
... | @@ -545,7 +547,7 @@ class Installer: | ... | @@ -545,7 +547,7 @@ class Installer: |
# Filter the available dists for the requirement and source flag | # Filter the available dists for the requirement and source flag | ||
dists = [dist for dist in index[requirement.project_name] | dists = [dist for dist in index[requirement.project_name] | ||
if ((dist in requirement) | if ((dist in requirement) | ||
and | and dist.precedence != WHL_DIST and | ||
((not source) or | ((not source) or | ||
(dist.precedence == pkg_resources.SOURCE_DIST) | (dist.precedence == pkg_resources.SOURCE_DIST) | ||
) | ) | ||
... | ... |
-
Owner
is it only plantuml ? there are some other problems with this egg
-
Owner
No idea, slapos-sr-testing fails during SR build and it can take a while to disable problematic eggs one by one.
-
Owner
The issue with plantuml was https://github.com/dougn/python-plantuml/issues/12 I don't remember how I hit this bug, but it seems that we can install it with slapos, probably because something installs httplib2 before.
Anyway, my idea was that if it's only plantuml, we can maybe install plantuml differently, but it's highly probable that there are more eggs like this, so maybe the best is to make buildout do something like "prefer source distribution over wheels"
-
Owner
There's also jsonschema that fails. But since there's a tarball, I guess the issue is related to setup dependency, apparently setuptools_scm.
-
Owner
There's also jsonschema that fails. But since there's a tarball, I guess the issue is related to setup dependency, apparently setuptools_scm.
This should have been fixed a long time ago :