8000 fix platform.sh build using virtualenv · symfony/symfony-docs@0a8ee1f · GitHub
[go: up one dir, main page]

Skip to content

Commit 0a8ee1f

Browse files
committed
fix platform.sh build using virtualenv
1 parent 5446afa commit 0a8ee1f

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
/_build/doctrees
22
/_build/html
3+
/.venv/
4+
/.idea/
35
*.pyc

.platform.app.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,16 @@ web:
4343
# The size of the persistent disk of the application (in MB).
4444
disk: 512
4545

46-
# Build time dependencies.
4746
dependencies:
4847
python:
49-
sphinx: "1.3.6"
48+
virtualenv: "15.1"
5049

5150
# The hooks that will be performed when the package is deployed.
5251
hooks:
5352
build: |
54-
pip install git+https://github.com/fabpot/sphinx-php.git
55-
make -C _build html
53+
virtualenv .venv
54+
. .venv/bin/activate
55+
export PIP_USER=
56+
pip install pip==9.0.1 wheel==0.29.0
57+
pip install -r _build/.requirements.txt
58+
make -C _build html

_build/.requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
git+https://github.com/fabpot/sphinx-php.git@master#egg_name=sphinx-php

0 commit comments

Comments
 (0)
0