Skip to content

Commit 15dc2b1

Browse files
committed
pyproject.toml: Move settings of CIBW_ENVIRONMENT variables here
1 parent cbab31a commit 15dc2b1

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

.github/workflows/buildwheel.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ jobs:
4343
CIBW_BEFORE_ALL_WINDOWS: msys2 -c bin/cibw_before_all_windows.sh
4444
CIBW_BEFORE_BUILD_WINDOWS: msys2 -c bin/cibw_before_build_windows.sh
4545
CIBW_BEFORE_BUILD: pip install numpy setuptools cython delvewheel
46-
CIBW_ENVIRONMENT: >
47-
C_INCLUDE_PATH=$(pwd)/.local/include/
48-
LIBRARY_PATH=$(pwd)/.local/lib/
49-
LD_LIBRARY_PATH=$(pwd)/.local/lib:$LD_LIBRARY_PATH
5046

5147
- uses: actions/upload-artifact@v4
5248
with:

bin/cibw.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88

99
rm -f wheelhouse/*
1010

11-
# bin/build_dependencies_unix.sh places headers and shared libraries under .local
12-
export CIBW_ENVIRONMENT='C_INCLUDE_PATH=$(pwd)/.local/include/ LIBRARY_PATH=$(pwd)/.local/lib/ LD_LIBRARY_PATH=$(pwd)/.local/lib:$LD_LIBRARY_PATH'
13-
1411
export CIBW_BUILD='cp39-* cp310-* cp311-* cp312-*'
1512
# export CIBW_BUILD='cp311-*'
1613
export CIBW_SKIP='*-win32 *-manylinux_i686 *-musllinux_*'

pyproject.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,18 @@ content-type = "text/markdown"
2424
[tool.cibuildwheel]
2525
test-command = "python -c 'import flint; print(str(flint.fmpz(2)))'"
2626

27+
[tool.cibuildwheel.environment]
28+
# bin/build_dependencies_unix.sh places headers and shared libraries under .local
29+
C_INCLUDE_PATH = "$(pwd)/.local/include/"
30+
LIBRARY_PATH = "$(pwd)/.local/lib/"
31+
LD_LIBRARY_PATH = "$(pwd)/.local/lib:$LD_LIBRARY_PATH"
32+
2733
[tool.cibuildwheel.linux]
2834

2935
[tool.cibuildwheel.macos]
3036

3137
[tool.cibuildwheel.windows]
32-
environment = { PYTHON_FLINT_MINGW64="true" }
3338
repair-wheel-command = "bin\\cibw_repair_wheel_command_windows.bat {dest_dir} {wheel}"
39+
40+
[tool.cibuildwheel.windows.environment]
41+
PYTHON_FLINT_MINGW64 = "true"

0 commit comments

Comments
 (0)