diff --git a/setup.cfg b/setup.cfg index f1ce00c..9aff622 100644 --- a/setup.cfg +++ b/setup.cfg @@ -40,11 +40,6 @@ dev = cython >= 3.0.0a9 -[options.entry_points] -pyinstaller40 = - hook-dirs = leveldb.__pyinstaller:get_hook_dirs - - # See the docstring in versioneer.py for instructions. Note that you must # re-run 'versioneer.py setup' after changing this section, and commit the # resulting files. diff --git a/src/leveldb/__pyinstaller/__init__.py b/src/leveldb/__pyinstaller/__init__.py deleted file mode 100644 index 663330b..0000000 --- a/src/leveldb/__pyinstaller/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -def get_hook_dirs(): - return __path__ diff --git a/src/leveldb/__pyinstaller/hook-leveldb.py b/src/leveldb/__pyinstaller/hook-leveldb.py deleted file mode 100644 index 6ae1bdb..0000000 --- a/src/leveldb/__pyinstaller/hook-leveldb.py +++ /dev/null @@ -1,25 +0,0 @@ -import sys -import os - -from src import leveldb - -LEVELDB_PATH = leveldb.__path__[0] - - -if sys.platform == "linux": - dll = "libleveldb.so" -elif sys.platform == "win32": - dll = "leveldb.dll" -elif sys.platform == "darwin": - dll = "libleveldb.dylib" -else: - raise Exception(f"Unsupported platform {sys.platform}") - -binaries = [ - ( - os.path.join( - LEVELDB_PATH, dll - ), - "leveldb", - ), -]