Skip to content

Commit

Permalink
sphinx-pre-install: use a requirements file
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mchehab authored and Jonathan Corbet committed Jul 23, 2017
1 parent 5be3318 commit fb947f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Documentation/sphinx/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
docutils==0.12
Sphinx==1.4.9
sphinx_rtd_theme
5 changes: 2 additions & 3 deletions scripts/sphinx-pre-install
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ use strict;
# GNU General Public License for more details.

my $virtenv_dir = "sphinx_1.4";
my $requirement_file = "Documentation/sphinx/requirements.txt";

#
# Static vars
Expand Down Expand Up @@ -467,9 +468,7 @@ sub check_needs()

printf "\t$virtualenv $virtenv_dir\n";
printf "\t. $activate\n";
printf "\tpip install 'docutils==0.12'\n";
printf "\tpip install 'Sphinx==1.4.9'\n";
printf "\tpip install sphinx_rtd_theme\n";
printf "\tpip install -r $requirement_file\n";
$need++;
}
}
Expand Down

0 comments on commit fb947f3

Please sign in to comment.