-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Right now we concatenate the licenses for libgfortran et al. into the main LICENSE.txt file, here:
numpy-release/tools/wheels/cibw_before_build.sh
Lines 7 to 17 in 40fd86c
| # Update license | |
| echo "" >> $NUMPY_SRC_DIR/LICENSE.txt | |
| echo "----" >> $NUMPY_SRC_DIR/LICENSE.txt | |
| echo "" >> $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 | |
| cat $PROJECT_DIR/tools/wheels/LICENSE_osx.txt >> $NUMPY_SRC_DIR/LICENSE.txt | |
| elif [[ $RUNNER_OS == "Windows" ]]; then | |
| cat $PROJECT_DIR/tools/wheels/LICENSE_win32.txt >> $NUMPY_SRC_DIR/LICENSE.txt | |
| fi |
That is quite ugly. It'd be much better to use PEP 639's support for separate license files, and add them directly into .dist-info. @oscarbenjamin shared a script that can do this at numpy/numpy#29535 (comment)
Metadata
Metadata
Assignees
Labels
No labels