From 20d106ba9c9e09c98f3eff999f4519b009cc4dd1 Mon Sep 17 00:00:00 2001 From: mio Date: Sat, 21 Dec 2024 18:10:40 +0800 Subject: [PATCH] Fix collision with pypa/build --- build.py => build_mdbx.py | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename build.py => build_mdbx.py (97%) 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"