Skip to content

Commit 576d8bf

Browse files
author
Matthias Koeppe
committed
src/sage/features/sagemath.py (SAGE_SRC): Check for sage-src-env-config.in, not VERSION.txt
1 parent 7cd5a23 commit 576d8bf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/sage/features/sagemath.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,13 @@ def __init__(self):
5858
True
5959
"""
6060
from sage.env import SAGE_SRC
61+
# We check the file bin/sage-src-env-config.in, which by design is:
62+
# - never installed,
63+
# - not included in the sagemath-standard sdist,
64+
# - included only in one modularized sdist, of pkgs/sage-conf_pypi,
65+
# where it appears in a subdirectory (sage_root/src/bin/)
6166
StaticFile.__init__(self, 'SAGE_SRC',
62-
filename='VERSION.txt', # a file that is never installed
67+
filename='bin/sage-src-env-config.in',
6368
search_path=(SAGE_SRC,) if SAGE_SRC else ())
6469

6570

0 commit comments

Comments
 (0)