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

Commit

Permalink
src/sage_setup: Update cythonized_dir in doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Aug 8, 2020
1 parent 8a19fe2 commit ccc67b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/sage_setup/clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ def _find_stale_files(site_packages, python_packages, python_modules, ext_module
course. We check that when the doctest is being run, that is,
after installation, there are no stale files::
sage: from sage.env import SAGE_SRC, SAGE_LIB
sage: cythonized_dir = os.path.join(SAGE_SRC, "build", "cythonized")
sage: from sage.env import SAGE_SRC, SAGE_LIB, SAGE_ROOT
sage: cythonized_dir = os.path.join(SAGE_ROOT, "build", "pkgs", "sagelib", "src", "build", "cythonized")
sage: from sage_setup.find import find_python_sources, find_extra_files
sage: python_packages, python_modules, cython_modules = find_python_sources(
....: SAGE_SRC, ['sage', 'sage_setup'])
Expand Down
4 changes: 2 additions & 2 deletions src/sage_setup/find.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ def find_extra_files(src_dir, modules, cythonized_dir, special_filenames=[]):
EXAMPLES::
sage: from sage_setup.find import find_extra_files
sage: from sage.env import SAGE_SRC
sage: cythonized_dir = os.path.join(SAGE_SRC, "build", "cythonized")
sage: from sage.env import SAGE_SRC, SAGE_ROOT
sage: cythonized_dir = os.path.join(SAGE_ROOT, "build", "pkgs", "sagelib", "src", "build", "cythonized")
sage: extras = find_extra_files(SAGE_SRC, ["sage"], cythonized_dir)
sage: extras["sage/libs/mpfr"]
[...sage/libs/mpfr/types.pxd...]
Expand Down

0 comments on commit ccc67b0

Please sign in to comment.