From e954945550cce8a1a2fcfa926806c88277e29565 Mon Sep 17 00:00:00 2001 From: Stefan de Konink Date: Sat, 25 Jul 2026 22:08:19 +0200 Subject: [PATCH] Move the libmdbx repository to lts/0.13 solving the Win32 issues. --- .github/workflows/wheels.yaml | 2 +- .gitmodules | 2 +- build_mdbx.py | 2 +- libmdbx | 2 +- pyproject.toml | 6 +++++- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/wheels.yaml b/.github/workflows/wheels.yaml index 08016cd..e65312c 100644 --- a/.github/workflows/wheels.yaml +++ b/.github/workflows/wheels.yaml @@ -162,7 +162,7 @@ jobs: - name: Build SDist run: | sudo apt update && sudo apt install ninja-build git build-essential -y - cd libmdbx && git fetch --tags && make V=1 && cd .. + cd libmdbx && git fetch --tags && make V=1 dist && cd .. python3 -m pip install -U pip build python3 -m build --sdist diff --git a/.gitmodules b/.gitmodules index c70f584..6f54bc3 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "libmdbx"] path = libmdbx - url = https://gitflic.ru/project/erthink/libmdbx.git + url = https://github.com/Mithril-mine/libmdbx-devel.git diff --git a/build_mdbx.py b/build_mdbx.py index 5aae3b6..d4b4cac 100644 --- a/build_mdbx.py +++ b/build_mdbx.py @@ -39,7 +39,7 @@ def build(setup_kws: dict): # If there is already dist if not dist_folder.exists(): if sys.platform in ["linux", "linux2"]: - subprocess.check_call(["make"], cwd=libmdbx_source) + subprocess.check_call(["make", "dist"], cwd=libmdbx_source) if have_git() and (libmdbx_source / ".git").exists(): source_folder = libmdbx_source diff --git a/libmdbx b/libmdbx index 5315e99..a729d19 160000 --- a/libmdbx +++ b/libmdbx @@ -1 +1 @@ -Subproject commit 5315e9905b525a0a183b76fc787317c51076f944 +Subproject commit a729d19e7d67a375b802d1becf6624220b696c3d diff --git a/pyproject.toml b/pyproject.toml index cba970c..f59c714 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,10 +15,14 @@ packages = [ {include = "mdbx"} ] include = [ - { path = "libmdbx/*", format = "sdist"}, + { path = "libmdbx/dist/*", format = "sdist"}, { path = "mdbx/lib/*", format = "wheel" }, ] +exclude = [ + { path = "libmdbx/dist/build", format = "sdist"}, +] + [tool.poetry.build] generate-setup-file = false script = "build_mdbx.py"