Opened 3 years ago

Last modified 2 years ago

#29701 closed enhancement

Replace use of module_list and OptionalExtension by extending find_python_sources — at Version 12

Reported by: Matthias Köppe Owned by:
Priority: critical Milestone: sage-9.2
Component: refactoring Keywords:
Cc: François Bissey, Isuru Fernando, Vincent Delecroix, David Coudert, Dima Pasechnik, gh-kliem, Volker Braun Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: u/mkoeppe/replace_use_of_module_list_optionalextension (Commits, GitHub, GitLab) Commit: 891d12aeacd439cd72e31d42399826f48dae624f
Dependencies: #29411, #29702, #29706, #29720, #29721, #29785, #29786, #29790, #29791 Stopgaps:

Status badges

Description (last modified by Matthias Köppe)

We add two new features to find_python_sources: finding Cython extensions, and filtering by "distributions". We remove the use of module_list, finding Cython extensions instead in the source tree. (This is prepared by #29706 and follow-up tickets by moving Extension options to directives in the source files.)

We remove OptionalExtensions as follows. We map installed packages to "distributions" (for example, tdlib -> sage-tdlib) and then filter by distribution.

(In a follow-up ticket, part of Meta-ticket #29705, we will make these "distributions" actually separate distutils packages.)

Change History (12)

comment:1 Changed 3 years ago by Matthias Köppe

Description: modified (diff)
Summary: Replace use of OptionalExtension by namespace packagesMeta-ticket: Replace use of OptionalExtension by namespace packages

comment:2 Changed 3 years ago by Matthias Köppe

Description: modified (diff)

comment:3 Changed 3 years ago by Matthias Köppe

Cc: Vincent Delecroix David Coudert Dima Pasechnik added
Description: modified (diff)

comment:4 Changed 3 years ago by Matthias Köppe

Description: modified (diff)

comment:5 Changed 3 years ago by Matthias Köppe

Description: modified (diff)

comment:6 Changed 3 years ago by Matthias Köppe

Description: modified (diff)

comment:7 Changed 3 years ago by Matthias Köppe

Description: modified (diff)

comment:8 Changed 3 years ago by Matthias Köppe

Description: modified (diff)

comment:9 Changed 2 years ago by Matthias Köppe

Description: modified (diff)

comment:10 Changed 2 years ago by Matthias Köppe

Cc: gh-kliem added
Dependencies: #29411, #29702, #29706, #29720, #29721, #29785, #29786, #29790, #29791, #28925
Description: modified (diff)
Summary: Meta-ticket: Replace use of OptionalExtension by namespace packagesReplace use of module_list and OptionalExtension by extending find_python_sources

comment:11 Changed 2 years ago by Matthias Köppe

Branch: u/mkoeppe/replace_use_of_module_list_optionalextension

comment:12 Changed 2 years ago by Matthias Köppe

Commit: 891d12aeacd439cd72e31d42399826f48dae624f
Dependencies: #29411, #29702, #29706, #29720, #29721, #29785, #29786, #29790, #29791, #28925#29411, #29702, #29706, #29720, #29721, #29785, #29786, #29790, #29791
Description: modified (diff)

Last 10 new commits:

4365e5dMerge branch 't/29790/move_extension_options_from_src_module_list_py_to__distutils___directives_in_the_individual_files__part_5__sage_graphs_' into t/29705/META-modularize-sagelib
9dc7022Merge branch 't/29706/move_extension_options_from_src_module_list_py_to__distutils___directives_in_the_individual_files' into t/29791/move_extension_options_from_src_module_list_py_to__distutils___directives_in_the_individual_files__part_6__last_
f78b06dsrc/module_list.py: Move options for Extensions in sage.libs to distutils directives
1b0e29dsrc/module_list.py: Move options for Extensions in sage.matrix to distutils directives
6421e2csrc/module_list.py: Move remaining options for Extensions in sage.libs, sage.rings to distutils directives
b3d3d2fMerge branch 't/29791/move_extension_options_from_src_module_list_py_to__distutils___directives_in_the_individual_files__part_6__last_' into t/29705/META-modularize-sagelib
2821934Fix sage_setup directives: Use distribution, not package
9052db4Merge branch 't/29720/move_extension_options_from_src_module_list_py_to__distutils___directives_in_the_individual_files__part_2___optionalextensions_' into t/29705/META-modularize-sagelib
ff710eesrc/sage_setup/optional_extension.py (is_package_installed_and_updated): Factor out from OptionalExtension
891d12asrc/setup.py: Remove use of module_list.py; filter by distributions
Note: See TracTickets for help on using tickets.