Skip to content

Commit

Permalink
Remove out
Browse files Browse the repository at this point in the history
  • Loading branch information
wtdcode committed Dec 21, 2024
1 parent 9a9839f commit 1626bbe
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build_mdbx.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def build(setup_kws: dict):
ensure_dependency()
debug = "DEBUG" in os.environ
pwd = Path(os.getcwd())
out_lib = pwd / "mdbx" / "lib"
libmdbx_source = pwd / "libmdbx"

tmpdir = None
Expand Down Expand Up @@ -52,8 +53,10 @@ def build(setup_kws: dict):
cwd=tmpdir_path
)

shutil.copy(tmpdir_path / SO_FILE, pwd / "mdbx" / "lib")
shutil.copy(libmdbx_source / "LICENSE", pwd / "mdbx" / "lib")
os.removedirs(out_lib)
os.makedirs(out_lib, exist_ok=True)
shutil.copy(tmpdir_path / SO_FILE, out_lib)
shutil.copy(libmdbx_source / "LICENSE", out_lib)

if __name__ == "__main__":
build({})

0 comments on commit 1626bbe

Please sign in to comment.