File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,15 @@ export PATH="$SAGE_ROOT"/build/bin:$PATH
16
16
SYSTEM_PACKAGES=$EXTRA_SYSTEM_PACKAGES
17
17
CONFIGURE_ARGS=" --enable-option-checking "
18
18
for SPKG in $( sage-package list --has-file=spkg-configure.m4 $SAGE_PACKAGE_LIST_ARGS ) $EXTRA_SAGE_PACKAGES ; do
19
- SYSTEM_PACKAGE=$( sage-get-system-packages $SYSTEM $SPKG | sed ' s/${PYTHON_MINOR}/ ' ${PYTHON_MINOR} ' /g ' )
19
+ SYSTEM_PACKAGE=$( sage-get-system-packages $SYSTEM $SPKG )
20
20
if [ -n " ${SYSTEM_PACKAGE} " ]; then
21
- # SYSTEM_PACKAGE can be empty if, for example, the environment
22
- # variable ENABLE_SYSTEM_SITE_PACKAGES is empty.
23
- SYSTEM_PACKAGES+=" ${SYSTEM_PACKAGE} "
24
- CONFIGURE_ARGS+=" --with-system-${SPKG} =${WITH_SYSTEM_SPKG} "
21
+ # SYSTEM_PACKAGE can be empty if, for example, the environment
22
+ # variable ENABLE_SYSTEM_SITE_PACKAGES is empty.
23
+ for a in $SYSTEM_PACKAGE ; do
24
+ # shell-quote package if necessary
25
+ SYSTEM_PACKAGES+=$( printf " %q" " $a " )
26
+ done
27
+ CONFIGURE_ARGS+=" --with-system-${SPKG} =${WITH_SYSTEM_SPKG} "
25
28
fi
26
29
done
27
30
echo " # Automatically generated by SAGE_ROOT/build/bin/write-dockerfile.sh"
You can’t perform that action at this time.
0 commit comments