Skip to content

Commit

Permalink
build/bin/sage-get-system-packages versions: Fix for jupyter_core, br…
Browse files Browse the repository at this point in the history
…oken in #36982 + #37894
  • Loading branch information
Matthias Koeppe committed Jun 12, 2024
1 parent ceed17e commit c13b3db
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions build/bin/sage-get-system-packages
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,13 @@ case "$SYSTEM" in
# For use in sage-spkg-info
SYSTEM_PACKAGES_FILE_NAMES="package-version.txt requirements.txt src/pyproject.toml version_requirements.txt"
strip_comments () {
echo "$NAME::"
echo
sed "s/#.*//;/^[[:space:]]*$/d;s/\"/'/g;s/^/ /;" "$@"
echo
TEXT=$(sed "s/#.*//;/^[[:space:]]*$/d;s/\"/'/g;s/^/ /;" "$@")
if [ -n "$(echo $TEXT)" ]; then
echo "$NAME::"
echo
echo "$TEXT"
echo
fi
}
STRIP_COMMENTS=strip_comments
COLLECT=
Expand Down

0 comments on commit c13b3db

Please sign in to comment.