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