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

Commit

Permalink
Merge branch 't/29701/replace_use_of_module_list_optionalextension' i…
Browse files Browse the repository at this point in the history
…nto t/29950/build_sagelib_using_installed_sage_setup
  • Loading branch information
Matthias Koeppe committed Jun 28, 2020
2 parents 516358b + d62da15 commit 5e577ab
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/sage_setup/command/sage_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,21 @@ def run_autogen(self):
see :trac:`22106`.
"""
from sage_setup.autogen import autogen_all
from sage_setup.find import find_python_sources
from sage.env import SAGE_SRC

log.info("Generating auto-generated sources")
for pkg in autogen_all():

pkgs = autogen_all()
python_packages, python_modules, cython_modules = find_python_sources(
SAGE_SRC, [ pkg.replace('.', '/') for pkg in pkgs])

for pkg in python_packages:
if pkg not in self.distribution.packages:
self.distribution.packages.append(pkg)
self.distribution.packages.append(pkg)

for cython_module in cython_modules:
self.distribution.ext_modules.append(cython_module)

def run(self):
self.run_autogen()
Expand Down

0 comments on commit 5e577ab

Please sign in to comment.