Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Mauro Carvalho Chehab and committed by
Jonathan Corbet
fb947f3f 5be33182

+5 -3
+3
Documentation/sphinx/requirements.txt
··· 1 + docutils==0.12 2 + Sphinx==1.4.9 3 + sphinx_rtd_theme
+2 -3
scripts/sphinx-pre-install
··· 14 14 # GNU General Public License for more details. 15 15 16 16 my $virtenv_dir = "sphinx_1.4"; 17 + my $requirement_file = "Documentation/sphinx/requirements.txt"; 17 18 18 19 # 19 20 # Static vars ··· 468 467 469 468 printf "\t$virtualenv $virtenv_dir\n"; 470 469 printf "\t. $activate\n"; 471 - printf "\tpip install 'docutils==0.12'\n"; 472 - printf "\tpip install 'Sphinx==1.4.9'\n"; 473 - printf "\tpip install sphinx_rtd_theme\n"; 470 + printf "\tpip install -r $requirement_file\n"; 474 471 $need++; 475 472 } 476 473 }