Skip to content

Commit

Permalink
Removed dlls from build
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlegiantJGC committed Oct 5, 2022
1 parent f0e8c4e commit f1ad204
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 40 deletions.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1 @@
recursive-include amulet *.py *.pyi *.pyx *.pxd *.jpg *.png *.dylib *.h *.so *.dll
recursive-include amulet *.py *.pyi *.pyx *.pxd *.jpg *.png
39 changes: 0 additions & 39 deletions amulet/__pyinstaller/hook-amulet.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,42 +18,3 @@
]
+ ["amulet.api.structure"]
)

if sys.platform == "linux":
binaries = [
(
os.path.join(
AMULET_PATH, "libs", "leveldb", "leveldb_mcpe_linux_x86_64.so"
),
os.path.join(".", "amulet", "libs", "leveldb"),
),
]
elif sys.platform == "win32":
if sys.maxsize > 2**32: # 64 bit python
binaries = [
(
os.path.join(
AMULET_PATH, "libs", "leveldb", "leveldb_mcpe_win_amd64.dll"
),
os.path.join(".", "amulet", "libs", "leveldb"),
),
]
else:
binaries = [
(
os.path.join(AMULET_PATH, "libs", "leveldb", "leveldb_mcpe_win32.dll"),
os.path.join(".", "amulet", "libs", "leveldb"),
)
]

elif sys.platform == "darwin":
binaries = [
(
os.path.join(
AMULET_PATH, "libs", "leveldb", "leveldb_mcpe_macosx_10_9_x86_64.dylib"
),
os.path.join(".", "amulet", "libs", "leveldb"),
),
]
else:
raise Exception(f"Unsupported platform {sys.platform}")

0 comments on commit f1ad204

Please sign in to comment.