Skip to content

Commit

Permalink
add patch
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip committed Mar 8, 2024
1 parent fe20802 commit 9d2d23a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions recipe/patches/0033-remove-top-level-__init__.py-issue-4885.patch
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9d2d23a

Please sign in to comment.