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

Commit ccc67b0

Browse files
author
Matthias Koeppe
committed
src/sage_setup: Update cythonized_dir in doctests
1 parent 8a19fe2 commit ccc67b0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/sage_setup/clean.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ def _find_stale_files(site_packages, python_packages, python_modules, ext_module
7777
course. We check that when the doctest is being run, that is,
7878
after installation, there are no stale files::
7979
80-
sage: from sage.env import SAGE_SRC, SAGE_LIB
81-
sage: cythonized_dir = os.path.join(SAGE_SRC, "build", "cythonized")
80+
sage: from sage.env import SAGE_SRC, SAGE_LIB, SAGE_ROOT
81+
sage: cythonized_dir = os.path.join(SAGE_ROOT, "build", "pkgs", "sagelib", "src", "build", "cythonized")
8282
sage: from sage_setup.find import find_python_sources, find_extra_files
8383
sage: python_packages, python_modules, cython_modules = find_python_sources(
8484
....: SAGE_SRC, ['sage', 'sage_setup'])

src/sage_setup/find.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ def find_extra_files(src_dir, modules, cythonized_dir, special_filenames=[]):
207207
EXAMPLES::
208208
209209
sage: from sage_setup.find import find_extra_files
210-
sage: from sage.env import SAGE_SRC
211-
sage: cythonized_dir = os.path.join(SAGE_SRC, "build", "cythonized")
210+
sage: from sage.env import SAGE_SRC, SAGE_ROOT
211+
sage: cythonized_dir = os.path.join(SAGE_ROOT, "build", "pkgs", "sagelib", "src", "build", "cythonized")
212212
sage: extras = find_extra_files(SAGE_SRC, ["sage"], cythonized_dir)
213213
sage: extras["sage/libs/mpfr"]
214214
[...sage/libs/mpfr/types.pxd...]

0 commit comments

Comments
 (0)