From 9d2d23ad798d10851c91a429f9b67c3983f824cb Mon Sep 17 00:00:00 2001 From: mattip Date: Fri, 8 Mar 2024 08:03:48 +0200 Subject: [PATCH] add patch --- ...ove-top-level-__init__.py-issue-4885.patch | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 recipe/patches/0033-remove-top-level-__init__.py-issue-4885.patch diff --git a/recipe/patches/0033-remove-top-level-__init__.py-issue-4885.patch b/recipe/patches/0033-remove-top-level-__init__.py-issue-4885.patch new file mode 100644 index 0000000..949a6cf --- /dev/null +++ b/recipe/patches/0033-remove-top-level-__init__.py-issue-4885.patch @@ -0,0 +1,24 @@ +From ac21be539816ae0bd43cd7fc41ea29f6ec1be826 Mon Sep 17 00:00:00 2001 +Date: Sun, 4 Feb 2024 23:11:15 +0200 +Subject: [PATCH] remove top level __init__.py (issue 4885) + +--- + pypy/tool/release/package.py | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/pypy/tool/release/package.py b/pypy/tool/release/package.py +index 95159d03c0f..5c626528d42 100755 +--- a/pypy/tool/release/package.py ++++ b/pypy/tool/release/package.py +@@ -358,6 +358,8 @@ def create_package(basedir, options, _fake=False): + '*.lib', '*.exp', '*.manifest', '__pycache__')) + for file in ['README.rst',]: + shutil.copy(str(basedir.join(file)), str(pypydir)) ++ for file in ['__init__.py',]: ++ os.unlink(str(target / file)) + # Use original LICENCE file + base_file = str(basedir.join('LICENSE')) + with open(base_file) as fid: +-- +2.34.1 +