Skip to content

Commit

Permalink
Trac #32672: src/setup.py: Don't cythonize everything in src/
Browse files Browse the repository at this point in the history
In the version of setup.py used by the editable install:
{{{
 extensions = cythonize(
        ["**/*.pyx"],
}}}
at least it should restrict itself to `sage/**/*.pyx`
so that it does not go cythonizing in random directories that the user
may have in this directory... such as a venv...

URL: https://trac.sagemath.org/32672
Reported by: mkoeppe
Ticket author(s): Matthias Koeppe
Reviewer(s): Jonathan Kliem
  • Loading branch information
Release Manager committed Oct 19, 2021
2 parents e4e87f2 + ff2a352 commit 9cbde3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
from Cython.Build import cythonize
from sage.env import cython_aliases, sage_include_directories
extensions = cythonize(
["**/*.pyx"],
["sage/**/*.pyx"],
exclude=files_to_exclude,
include_path=sage_include_directories(use_sources=True) + ['.'],
compile_time_env=compile_time_env_variables(),
Expand Down

0 comments on commit 9cbde3c

Please sign in to comment.