diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-07-17 17:46:38 -0400 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2017-07-23 17:51:24 -0400 |
commit | fb947f3f472303d54759bf898cf92fd8c2dc9bdf (patch) | |
tree | 74d1935bf640c9b7ad868c433f03cdbd2b0eee8d /scripts/sphinx-pre-install | |
parent | 5be33182d4e22750237281f03172e6c3456cdb42 (diff) |
sphinx-pre-install: use a requirements file
Instead of using 3 commands to install a virtualenv, use
a single one, reading the requirements from this file:
Documentation/sphinx/requirements.txt
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'scripts/sphinx-pre-install')
-rwxr-xr-x | scripts/sphinx-pre-install | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/sphinx-pre-install b/scripts/sphinx-pre-install index bcd6f7978f8d..230d9cc7ee1d 100755 --- a/scripts/sphinx-pre-install +++ b/scripts/sphinx-pre-install | |||
@@ -14,6 +14,7 @@ use strict; | |||
14 | # GNU General Public License for more details. | 14 | # GNU General Public License for more details. |
15 | 15 | ||
16 | my $virtenv_dir = "sphinx_1.4"; | 16 | my $virtenv_dir = "sphinx_1.4"; |
17 | my $requirement_file = "Documentation/sphinx/requirements.txt"; | ||
17 | 18 | ||
18 | # | 19 | # |
19 | # Static vars | 20 | # Static vars |
@@ -467,9 +468,7 @@ sub check_needs() | |||
467 | 468 | ||
468 | printf "\t$virtualenv $virtenv_dir\n"; | 469 | printf "\t$virtualenv $virtenv_dir\n"; |
469 | printf "\t. $activate\n"; | 470 | printf "\t. $activate\n"; |
470 | printf "\tpip install 'docutils==0.12'\n"; | 471 | printf "\tpip install -r $requirement_file\n"; |
471 | printf "\tpip install 'Sphinx==1.4.9'\n"; | ||
472 | printf "\tpip install sphinx_rtd_theme\n"; | ||
473 | $need++; | 472 | $need++; |
474 | } | 473 | } |
475 | } | 474 | } |