Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
src/bin/sage-version.sh: Stop 'setup.py develop' from mistaking this …
Browse files Browse the repository at this point in the history
…file for a Python file
  • Loading branch information
Matthias Koeppe committed Jul 23, 2022
1 parent 625ac58 commit 5460f8a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/bin/sage-update-version
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ EOF

# Update Sage version file for shell scripts in SAGE_SRC/bin/sage-version.sh
cat <<EOF > "$SAGE_SRC/bin/sage-version.sh"
# Sage version information for shell scripts
# Sage version information for shell scripts.
#
# #31049: The following line is valid shell code but not valid Python code,
# which stops "setup.py develop" from rewriting it as a Python file.
:
# This file is auto-generated by the sage-update-version script, do not edit!
SAGE_VERSION='$SAGE_VERSION'
SAGE_RELEASE_DATE='$SAGE_RELEASE_DATE'
Expand Down
6 changes: 5 additions & 1 deletion src/bin/sage-version.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Sage version information for shell scripts
# Sage version information for shell scripts. The following line is valid shell code
#
# #31049: The following line is valid shell code but not valid Python code,
# which stops "setup.py develop" from rewriting it as a Python file.
:
# This file is auto-generated by the sage-update-version script, do not edit!
SAGE_VERSION='9.7.beta5'
SAGE_RELEASE_DATE='2022-07-10'
Expand Down

0 comments on commit 5460f8a

Please sign in to comment.