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

Nicky Chorley <[email protected]>
Newsgroups org.kernel.vger.linux-spdx
Message-ID <CAG-xSoY-Z=AD8KhXrJvzqgA+mYZwUGEbAQ7UfPEbH6e4g7VD4w@mail.gmail.com>
Resending to linux-spdx.

---------- Forwarded message ---------
From: Nicky Chorley <[email protected]>
Date: Sun, 25 Jul 2021 at 20:35
Subject: scripts/spdxcheck.py's third-party dependencies
To: <[email protected]>, <[email protected]>


Hi folks,

On linux-next (tag: next-20210723), running scripts/checkpatch.pl
complains, with e.g.

Traceback (most recent call last):
   File "scripts/spdxcheck.py", line 10, in <module>
     import git
ModuleNotFoundError: No module named 'git'

and the same for ply if you don't have those libraries installed. Would it
be OK to add a pip requirements.txt file, so that people can use that to
install those and not have to manually go hunt them down? In future,
if other Python scripts needed third-party libraries, those could be
listed in the file too (I had a quick look and didn't see any used in the
others).

Apologies if this has already been covered somewhere - I couldn't see
archive links for linux-spdx on vger.kernel.org.

Best,

Nicky
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.