Skip to content

Commit 0874d61

Browse files
author
Matthias Koeppe
committed
build/bin/sage-print-system-package-command: Simplify
1 parent ab52a21 commit 0874d61

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

build/bin/sage-print-system-package-command

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,7 @@ function print_shell_command()
9494
if [ -z "$WRAP" -o $# -lt 6 ]; then
9595
echo "${PROMPT}${quoted}"
9696
else
97-
if [ -z "$SAGE_BOOTSTRAP_PYTHON" ]; then
98-
SAGE_BOOTSTRAP_PYTHON=$(sage-bootstrap-python -c "import sys; print(sys.executable)")
99-
fi
100-
$SAGE_BOOTSTRAP_PYTHON -c "import textwrap; print(' \\\\\n'.join(textwrap.wrap(r'''${quoted}''', $WRAP, initial_indent=r'''${PROMPT}''', subsequent_indent=r'''${CONTINUATION}''', break_long_words=False, break_on_hyphens=False)))"
97+
sage-bootstrap-python -c "import textwrap; print(' \\\\\n'.join(textwrap.wrap(r'''${quoted}''', $WRAP, initial_indent=r'''${PROMPT}''', subsequent_indent=r'''${CONTINUATION}''', break_long_words=False, break_on_hyphens=False)))"
10198
fi
10299
if [ -n "$OUTPUT_RST" ]; then
103100
echo

0 commit comments

Comments
 (0)