Skip to content

Commit 433c93f

Browse files
committed
CI: fixing wheels
Assisted-by: Kimi-k2.6
1 parent beb465a commit 433c93f

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ if [ "$CIBUILDWHEEL" = "1" ]; then
217217
cp $OPENSSL_PREFIX/*.dylib $PREFIX/lib/
218218
echo "PREFIX " $PREFIX
219219
echo "OPENSSL_PREFIX" $OPENSSL_PREFIX
220-
ls -l /Users/runner/work/pygit2/pygit2/ci/
220+
ls -l $PREFIX
221221
ls -l $PREFIX/lib
222222
fi
223223
# we're done building dependencies, cibuildwheel action will take over

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ skip = "*musllinux_ppc64le"
99
archs = ["native"]
1010
build-frontend = "default"
1111
dependency-versions = "pinned"
12-
environment = {LIBGIT2_VERSION="1.9.2", LIBSSH2_VERSION="1.11.1", OPENSSL_VERSION="3.5.4", LIBGIT2="/project/ci"}
12+
environment = {LIBGIT2_VERSION="1.9.2", LIBSSH2_VERSION="1.11.1", OPENSSL_VERSION="3.5.4"}
1313

1414
before-all = "sh build.sh"
1515
test-command = "pytest"
1616
test-sources = ["test", "pytest.ini"]
17-
before-test = "pip install -r {project}/requirements-test.txt"
17+
before-test = "pip install -r {package}/requirements-test.txt"
1818
# Will avoid testing on emulated architectures (specifically ppc64le)
1919
# Also, skip testing pypy on macOS arm64 due issue with bootstrapping git config paths
2020
# see https://github.com/libgit2/pygit2/issues/1442
@@ -28,8 +28,7 @@ select = "*-musllinux*"
2828
repair-wheel-command = "LD_LIBRARY_PATH=/project/ci/lib auditwheel repair -w {dest_dir} {wheel}"
2929

3030
[tool.cibuildwheel.macos]
31-
environment = {LIBGIT2_VERSION="1.9.2", LIBSSH2_VERSION="1.11.1", OPENSSL_VERSION="3.5.4", LIBGIT2="/Users/runner/work/pygit2/pygit2/ci"}
32-
repair-wheel-command = "DYLD_LIBRARY_PATH=/Users/runner/work/pygit2/pygit2/ci/lib delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}"
31+
repair-wheel-command = "DYLD_LIBRARY_PATH={package}/ci/lib delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel}"
3332

3433
[tool.cibuildwheel.windows]
3534
environment.LIBGIT2_SRC = "build/libgit2_src"

0 commit comments

Comments
 (0)