Skip to content

Commit

Permalink
trac 29923: remove use of sage-cython in main sage script,
Browse files Browse the repository at this point in the history
deprecate all use of sage-cython.
  • Loading branch information
jhpalmieri committed Jun 21, 2020
1 parent 4a3d36e commit 648e327
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/sage
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ fi

if [ "$1" = "-cython" -o "$1" = '--cython' -o "$1" = '-pyrex' -o "$1" = "--pyrex" ]; then
shift
exec sage-cython "$@"
exec cython "$@"
fi

if [ "$1" = '-gap' -o "$1" = '--gap' ]; then
Expand Down
4 changes: 4 additions & 0 deletions src/bin/sage-cython
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@
# It is deprecated since Trac #27041 (Sage 8.7) because one should
# simply use "cython" directly. We display deprecation messages whenever
# "sage-cython" does something different from plain "cython".
#
# A stronger deprecation warning was added in #29923 (Sage 9.2).

import os
import sys
args = sys.argv[1:]

sys.stderr.write("WARNING: the script sage-cython is deprecated; use cython instead.\n")

from sage.env import SAGE_SRC

# args can have length 0, in case we're printing a usage message (see trac 12207)
Expand Down

0 comments on commit 648e327

Please sign in to comment.