Skip to content

Commit 28599c7

Browse files
committed
include SDL2 libraries for mac & windows in wheel
1 parent 036f673 commit 28599c7

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

setup.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,8 @@ def build_py_ext(obj):
154154
with open(os.path.join(HERE, 'MANIFEST.in'), 'w') as f:
155155
f.write(DUNMANIFESTIN)
156156
f.write(u'prune test\n')
157-
# include DLLs on Windows
158-
if sys.platform == 'win32':
159-
if platform.architecture()[0] == '64bit':
160-
f.write(u'include pcbasic/lib/win32_x64/*.dll\n')
161-
else:
162-
f.write(u'include pcbasic/lib/win32_x86/*.dll\n')
157+
# include binary libraries for Windows & Mac in wheel
158+
f.write(u'include pcbasic/lib/*/*\n')
163159
with open(os.path.join(HERE, 'pcbasic', 'data', 'release.json'), 'w') as f:
164160
json_str = json.dumps(RELEASE_ID)
165161
if isinstance(json_str, bytes):

0 commit comments

Comments
 (0)