Skip to content

Commit

Permalink
src/sage/features/sagemath.py (SAGE_SRC): Check for sage-src-env-conf…
Browse files Browse the repository at this point in the history
…ig.in, not VERSION.txt
  • Loading branch information
Matthias Koeppe committed Apr 3, 2024
1 parent 0aafe3f commit 9a761f7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/sage/features/sagemath.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,13 @@ def __init__(self):
True
"""
from sage.env import SAGE_SRC
# We check the file bin/sage-src-env-config.in, which by design is:
# - never installed,
# - not included in the sagemath-standard sdist,
# - included only in one modularized sdist, of pkgs/sage-conf_pypi,
# where it appears in a subdirectory (sage_root/src/bin/)
StaticFile.__init__(self, 'SAGE_SRC',
filename='VERSION.txt', # a file that is never installed
filename='bin/sage-src-env-config.in',
search_path=(SAGE_SRC,) if SAGE_SRC else ())


Expand Down

0 comments on commit 9a761f7

Please sign in to comment.