Pin Python dependencies and install them in a virtualenv #7404
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
(Alternative version from #7403)
Installing
sphinx
started to fail about a week ago, withpip
incorrectly trying to remove a Python package shipped at the system level in Platform.sh environment.It looks like it started failing because of a bug in the older version of
pip
that ships with Debian Jessie. We (Platform.sh) install global Python dependencies as user-site packages (usingpip --user
). We also ship system-site packages that we use for our own benefit.So two issues here:
pip
. We are going to look into upgrading it (a new batch of images based on Debian Stretch are cooking);Fix the issue for good by installing in a
virtualenv
and pinning all the dependencies viapip freeze
.