Right now we concatenate the licenses for libgfortran et al. into the main LICENSE.txt file, here:
|
# 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)