Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1689508 > unrolled thread

[PATCH v2 4/8] sphinx-pre-install: use a requirements file

Started byMauro Carvalho Chehab <mchehab@s-opensource.com>
First post2017-07-17 23:50 +0200
Last post2017-07-17 23:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v2 4/8] sphinx-pre-install: use a requirements file Mauro Carvalho Chehab <mchehab@s-opensource.com> - 2017-07-17 23:50 +0200

#1689508 — [PATCH v2 4/8] sphinx-pre-install: use a requirements file

FromMauro Carvalho Chehab <mchehab@s-opensource.com>
Date2017-07-17 23:50 +0200
Subject[PATCH v2 4/8] sphinx-pre-install: use a requirements file
Message-ID<u4m3T-1ZS-5@gated-at.bofh.it>
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>
---
 Documentation/sphinx/requirements.txt | 3 +++
 scripts/sphinx-pre-install            | 5 ++---
 2 files changed, 5 insertions(+), 3 deletions(-)
 create mode 100644 Documentation/sphinx/requirements.txt

diff --git a/Documentation/sphinx/requirements.txt b/Documentation/sphinx/requirements.txt
new file mode 100644
index 000000000000..742be3e12619
--- /dev/null
+++ b/Documentation/sphinx/requirements.txt
@@ -0,0 +1,3 @@
+docutils==0.12
+Sphinx==1.4.9
+sphinx_rtd_theme
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;
 # GNU General Public License for more details.
 
 my $virtenv_dir = "sphinx_1.4";
+my $requirement_file = "Documentation/sphinx/requirements.txt";
 
 #
 # Static vars
@@ -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++;
 		}
 	}
-- 
2.13.3

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web