From c324f53de918c26b6165d4965e80915c5466333c Mon Sep 17 00:00:00 2001 From: Ralf Gommers Date: Mon, 11 Aug 2025 11:55:17 +0200 Subject: [PATCH] MAINT: update license handling for PEP 639 change xref numpy#29535, which contains the same change --- tools/wheels/check_license.py | 2 +- tools/wheels/cibw_before_build.sh | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/wheels/check_license.py b/tools/wheels/check_license.py index 572295b..9aa5001 100644 --- a/tools/wheels/check_license.py +++ b/tools/wheels/check_license.py @@ -38,7 +38,7 @@ def main(): distinfo_path = next(iter(sitepkgs.glob("numpy-*.dist-info"))) # Check license text - license_txt = distinfo_path / "LICENSE.txt" + license_txt = distinfo_path / "licenses" / "LICENSE.txt" with open(license_txt, encoding="utf-8") as f: text = f.read() diff --git a/tools/wheels/cibw_before_build.sh b/tools/wheels/cibw_before_build.sh index 9a53282..73a44d9 100644 --- a/tools/wheels/cibw_before_build.sh +++ b/tools/wheels/cibw_before_build.sh @@ -8,7 +8,6 @@ NUMPY_SRC_DIR="${1:-$PWD}/numpy-src" echo "" >> $NUMPY_SRC_DIR/LICENSE.txt echo "----" >> $NUMPY_SRC_DIR/LICENSE.txt echo "" >> $NUMPY_SRC_DIR/LICENSE.txt -cat $NUMPY_SRC_DIR/LICENSES_bundled.txt >> $NUMPY_SRC_DIR/LICENSE.txt if [[ $RUNNER_OS == "Linux" ]] ; then cat $PROJECT_DIR/tools/wheels/LICENSE_linux.txt >> $NUMPY_SRC_DIR/LICENSE.txt elif [[ $RUNNER_OS == "macOS" ]]; then