Skip to content

Commit c3bb57f

Browse files
committed
try to fix license addition
1 parent 1e8e066 commit c3bb57f

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ test-command = """
156156
pd.test(extra_args=["-m not clipboard and single_cpu and not slow and not network and not db", "--no-strict-data-files"]);' \
157157
"""
158158
free-threaded-support = true
159-
before-build = "bash {package}/scripts/cibw_before_build.sh"
159+
before-build = "PACKAGE_DIR={package} bash {package}/scripts/cibw_before_build.sh"
160160

161161
[tool.cibuildwheel.windows]
162162
before-build = "pip install delvewheel && bash {package}/scripts/cibw_before_build.sh"

scripts/cibw_before_build.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
# Add 3rd party licenses, like numpy does
2-
3-
PROJECT_DIR="${1:-$PWD}"
4-
5-
ls $PROJECT_DIR/LICENSES/*
6-
ls .
7-
8-
for file in $PROJECT_DIR/LICENSES/*; do
9-
cat $file >> $PROJECT_DIR/LICENSE
2+
for file in $PACKAGE_DIR/LICENSES/*; do
3+
cat $file >> $PACKAGE_DIR/LICENSE
104
done
115

126
# TODO: Delete when there's a PyPI Cython release that supports free-threaded Python 3.13.

0 commit comments

Comments
 (0)