Code Review
/
opnfvdocs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
59703f2
)
workaround for doc8 error in python2.6
57/18457/2
author
Ryota MIBU
<r-mibu@cq.jp.nec.com>
Wed, 10 Aug 2016 18:48:24 +0000
(
03:48
+0900)
committer
Ryota MIBU
<r-mibu@cq.jp.nec.com>
Wed, 10 Aug 2016 18:59:44 +0000
(
03:59
+0900)
Change-Id: I9b8967e564b522354f6fdcea51fe493c9682d36f
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
scripts/docs-build.sh
patch
|
blob
|
history
diff --git
a/scripts/docs-build.sh
b/scripts/docs-build.sh
index
b6bb5d5
..
e79e21c
100755
(executable)
--- a/
scripts/docs-build.sh
+++ b/
scripts/docs-build.sh
@@
-190,7
+190,13
@@
if ! which virtualenv > /dev/null ; then
exit 1
fi
-virtualenv "$VENV_DIR"
+# workaround for doc8 error in python2.6
+if python -V | grep -q 'Python 2.6' && [ -e /usr/bin/python2.7 ] ; then
+ virtualenv "$VENV_DIR" --python=/usr/bin/python2.7
+else
+ virtualenv "$VENV_DIR"
+fi
+
source "$VENV_DIR/bin/activate"
pip install -r "$OPNFVDOCS_DIR/etc/requirements.txt"