From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bert Outtier Date: Mon, 29 Mar 2021 12:55:54 +0200 Subject: [Buildroot] [PATCH 1/1] support/scripts: fix pycompile for short filenames Message-ID: <20210329105554.1622972-1-outtierbert@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Signed-off-by: Bert Outtier --- support/scripts/pycompile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/scripts/pycompile.py b/support/scripts/pycompile.py index 2b636e03cb..b8cd3cee6c 100644 --- a/support/scripts/pycompile.py +++ b/support/scripts/pycompile.py @@ -30,7 +30,7 @@ def compile_one(host_path, strip_root=None, verbose=False): if os.path.islink(host_path) or not os.path.isfile(host_path): return # only compile real files - if not re.match(r"^[_A-Za-z][_A-Za-z0-9]+\.py$", + if not re.match(r"^[_A-Za-z][_A-Za-z0-9]*\.py$", os.path.basename(host_path)): return # only compile "importable" python modules -- 2.25.1