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

Commit d62da15

Browse files
author
Matthias Koeppe
committed
sage_setup.command.sage_build: Add the extensions to the distribution
1 parent 14396af commit d62da15

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/sage_setup/command/sage_build.py

+13-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,21 @@ def run_autogen(self):
1212
see :trac:`22106`.
1313
"""
1414
from sage_setup.autogen import autogen_all
15+
from sage_setup.find import find_python_sources
16+
from sage.env import SAGE_SRC
17+
1518
log.info("Generating auto-generated sources")
16-
for pkg in autogen_all():
19+
20+
pkgs = autogen_all()
21+
python_packages, python_modules, cython_modules = find_python_sources(
22+
SAGE_SRC, [ pkg.replace('.', '/') for pkg in pkgs])
23+
24+
for pkg in python_packages:
1725
if pkg not in self.distribution.packages:
18-
self.distribution.packages.append(pkg)
26+
self.distribution.packages.append(pkg)
27+
28+
for cython_module in cython_modules:
29+
self.distribution.ext_modules.append(cython_module)
1930

2031
def run(self):
2132
self.run_autogen()

0 commit comments

Comments
 (0)