diff --git a/build.py b/build_mdbx.py similarity index 97% rename from build.py rename to build_mdbx.py index bb55e15..119ddfc 100644 --- a/build.py +++ b/build_mdbx.py @@ -17,7 +17,7 @@ def ensure_dependency(): subprocess.check_call(["cmake", "--version"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) subprocess.check_call(["ninja", "--version"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) -def build(): +def build(setup_kws: dict): ensure_dependency() debug = "DEBUG" in os.environ pwd = Path(os.getcwd()) @@ -56,4 +56,4 @@ def build(): shutil.copy(libmdbx_source / "LICENSE", pwd / "mdbx" / "lib") if __name__ == "__main__": - build() \ No newline at end of file + build({}) \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 933e8b8..710bb54 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ exclude = [ ] [tool.poetry.build] -script = "build.py" +script = "build_mdbx.py" [tool.poetry.dependencies] python = "^3.9"