From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F0750C4338F for ; Tue, 27 Jul 2021 06:47:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D29696112F for ; Tue, 27 Jul 2021 06:47:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235296AbhG0Grm (ORCPT ); Tue, 27 Jul 2021 02:47:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:42106 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235409AbhG0Grl (ORCPT ); Tue, 27 Jul 2021 02:47:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6B5F760FC0; Tue, 27 Jul 2021 06:47:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627368460; bh=jAPH/V3HdTFH/QwUxD+kipseBECDUHHOsTz0x7zkZgI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hjaIiM9KfsSB4MVMzJmITsLWTOoho5k4/cygU87l+VkE6jTWSQ2giO2PmdREQ2SZo XPk6TEMLHtTvMJXyzyofBY3CASsVyX+KCZwo+aWmzdt4gfgtnxye8ktrrnMryTbxHg Xl1ydIXSTC4v0qC35TeHjA7iYag0IT+uuZqQg84k= Date: Tue, 27 Jul 2021 08:47:38 +0200 From: Greg KH To: Nicky Chorley Cc: linux-spdx@vger.kernel.org Subject: Re: Fwd: scripts/spdxcheck.py's third-party dependencies Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-spdx@vger.kernel.org On Tue, Jul 27, 2021 at 07:42:21AM +0100, Nicky Chorley wrote: > Resending to linux-spdx. > > ---------- Forwarded message --------- > From: Nicky Chorley > Date: Sun, 25 Jul 2021 at 20:35 > Subject: scripts/spdxcheck.py's third-party dependencies > To: , > > > 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 > 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. How can you add a requirements.txt file for a single script in a directory of other scripts? thanks, greg k-h