Skip to content

Commit

Permalink
Fix collision with pypa/build
Browse files Browse the repository at this point in the history
  • Loading branch information
wtdcode committed Dec 21, 2024
1 parent 3ff52e3 commit 20d106b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.py → build_mdbx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down Expand Up @@ -56,4 +56,4 @@ def build():
shutil.copy(libmdbx_source / "LICENSE", pwd / "mdbx" / "lib")

if __name__ == "__main__":
build()
build({})
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ exclude = [
]

[tool.poetry.build]
script = "build.py"
script = "build_mdbx.py"

[tool.poetry.dependencies]
python = "^3.9"
Expand Down

0 comments on commit 20d106b

Please sign in to comment.