RE: Fwd: scripts/spdxcheck.py's third-party dependencies

"Zavras, Alexios" <[email protected]>
Newsgroups org.kernel.vger.linux-spdx
Message-ID <CO1PR11MB512471062D0584DB1DBB0DE389F79@CO1PR11MB5124.namprd11.prod.outlook.com>
Wouldn't the instructions be better if they were simply saying
``pip install ply git``
(or whatever), so no extra requirements file is needed?

-- zvr

-----Original Message-----
From: Nicky Chorley <[email protected]> 
Sent: Friday, 6 August, 2021 08:45
To: Greg KH <[email protected]>
Cc: Nicky Chorley <[email protected]>; [email protected]
Subject: Re: Fwd: scripts/spdxcheck.py's third-party dependencies

On Thu, 5 Aug 2021, Greg KH wrote:

> But we do not use pip to do kernel builds, so what is this going to 
> help with?

It's just about making people's lives easier for running the spdxcheck.py script - not everyone will have the third-party libraries installed, so listing them means they can be installed easily. For example:

diff --git a/scripts/README.spdxcheck b/scripts/README.spdxcheck new file mode 100644 index 000000000000..80bb6308e5c5
--- /dev/null
+++ b/scripts/README.spdxcheck
@@ -0,0 +1,6 @@
+The script spdxcheck.py requires installation of some third party 
+libraries. These are listed in ``requirements-spdxcheck.txt`` and can 
+be installed with
+
+``pip install -r requirements-spdxcheck.txt``
+
diff --git a/scripts/requirements-spdxcheck.txt b/scripts/requirements-spdxcheck.txt
new file mode 100644
index 000000000000..9a4633040897
--- /dev/null
+++ b/scripts/requirements-spdxcheck.txt
@@ -0,0 +1,3 @@
+ply
+GitPython
+

I'll reformat as a proper patch with any changes if this is useful.

Best,

Nicky
Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de <http://www.intel.de>
Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva  
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.