Commit 8146f89
committed
minor #7404 Pin Python dependencies and install them in a virtualenv (damz)
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #7404).
Discussion
----------
Pin Python dependencies and install them in a virtualenv
(Alternative version from #7403)
Installing `sphinx` started to fail about a week ago, with `pip` 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 (using `pip --user`). We also ship system-site packages that we use for our own benefit.
So two issues here:
* First, that older version of `pip`. We are going to look into upgrading it (a new batch of images based on Debian Stretch are cooking);
* The build dependencies of the Symfony Docs are not pinned, which makes the build non-repeatable. I'm guessing that in this case it broke [when jinja2 ended up requiring markupsafe>=0.23][jinja2-commit] (but that's just a guess).
Fix the issue for good by installing in a `virtualenv` and pinning all the dependencies via `pip freeze`.
[jinja2-commit]: pallets/jinja@5453db1
Commits
-------
75e7177 Pin Python dependencies and install them in a virtualenv2 files changed
+21
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
55 | 60 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments