Skip to content

Commit

Permalink
build/bin/sage-get-system-packages: Sort/uniquify package info extrac…
Browse files Browse the repository at this point in the history
…ted from src/pyproject.toml
  • Loading branch information
Matthias Koeppe committed May 17, 2024
1 parent e0aed28 commit a228617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/bin/sage-get-system-packages
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ for PKG_BASE in $SPKGS; do
# Packages are in the format "'sage-conf ~= 10.3b3',"
# Accept dashes and underscores in package names as equivalent:
PKG_REGEX=$(echo $PKG_BASE | sed 's/[-_]/[-_]/g')
PACKAGE_INFO=$(sed -En '/(requires|dependencies|R) *= *\[/,/^\]/s/^ *'\''('$PKG_REGEX'.*)'\'',/\1/p' "$SAGE_ROOT/src/pyproject.toml")
PACKAGE_INFO=$(sed -En '/(requires|dependencies|R) *= *\[/,/^\]/s/^ *'\''('$PKG_REGEX'.*)'\'',/\1/p' "$SAGE_ROOT/src/pyproject.toml" | sort -u)
if [ -n "$PACKAGE_INFO" ]; then
echo "$PACKAGE_INFO" | ${STRIP_COMMENTS}
[ $SYSTEM = versions ] || break
Expand Down

0 comments on commit a228617

Please sign in to comment.