Skip to content

Commit

Permalink
build/bin/sage-dist-helpers (sdh_pip_install): Pass config-settings w…
Browse files Browse the repository at this point in the history
…hich begin with a hyphen correctly
  • Loading branch information
Matthias Koeppe committed Jun 5, 2024
1 parent 182b418 commit 606a866
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/bin/sage-dist-helpers
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,10 @@ sdh_pip_install() {
install_options="$install_options $1"
;;
-C|--config-settings)
build_options="$build_options --config-setting"
shift
build_options="$build_options $1"
# Per 'python -m build --help', options which begin with a hyphen
# must be in the form of "--config-setting=--opt(=value)" or "-C--opt(=value)"
build_options="$build_options --config-setting=$1"
;;
*)
break
Expand Down

0 comments on commit 606a866

Please sign in to comment.