]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
python3-setuptools: restore build_scripts.executable support
authorYi Zhao <yi.zhao@windriver.com>
Sat, 20 Sep 2025 06:17:52 +0000 (14:17 +0800)
committerSteve Sakoman <steve@sakoman.com>
Mon, 22 Sep 2025 19:42:57 +0000 (12:42 -0700)
commitd728ec95291f05cbfb436eabe8717ebe9a0dc11d
treedaa3a167fd420d07782011d1726a2acb55d11ef3
parent8721554e02b4da4bb1aeb334921bc66a9eb80c91
python3-setuptools: restore build_scripts.executable support

We encountered an issue when running python scripts provided by
python3-fail2ban. The shebang '#!/usr/bin/env python3' was replaced by
'#!python', which caused these scripts to fail to run.

For example:
$ head -n 1 /usr/bin/fail2ban-testcases
 #!python
$ /usr/bin/fail2ban-testcases
-sh: /usr/bin/fail2ban-testcases: cannot execute: required file not found

This issue was introduced by commit[1] in python3-setuptools 75.3.2. See
the upstream issue report[2] for more information.

Backport patches from [3] to fix this issue.

[1] https://github.com/pypa/setuptools/commit/c71266345c64fd662b5f95bbbc6e4536172f496d
[2] https://github.com/pypa/setuptools/issues/4934
[3] https://github.com/pypa/distutils/pull/358

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-devtools/python/python3-setuptools/0001-Revert-Merge-pull-request-pypa-distutils-332-from-py.patch [new file with mode: 0644]
meta/recipes-devtools/python/python3-setuptools/0002-Remove-support-for-special-executable-under-a-Python.patch [new file with mode: 0644]
meta/recipes-devtools/python/python3-setuptools_76.0.0.bb