-
-
Notifications
You must be signed in to change notification settings - Fork 490
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #32874: New option "./configure --enable-wheels"
When `./configure --disable-editable` is in use (the default before #32406), the Sage library is installed using its custom incremental implementation of `setup.py install` -- which installs its files in `site-packages` and then removes the files that it does not know about (the "cleaner"). Problem 1: The cleaner is incompatible with namespace packages and trying to fix it would lead to complicated and awkward code (#32927). (Besides, `setup.py install` is deprecated since https://setuptools.pypa.io/en/latest/history.html#v58-3-0) Problem 2: Because of the direct installation, we do not have wheels for sagemath-standard available (even if [[https://trac.sagemath.org/wiki/Re leaseTours/sage-9.7#Editableinstallationisnowthedefault|make wheels]] is used explicitly). Such wheels can be useful for making separate venvs. In this ticket: - We create a new option `./configure --enable-wheels` (which can be used both with `./configure --enable-editable` and `./configure --disable-editable`). - If enabled, installation of sagelib will go through wheel building and installation - like we do with all other Python packages. This enables modularized builds (#34587). - If disabled, there is no change. A trivial `./sage -b` is much slower with `./configure --disable- editable --enable-wheels` compared to `./configure --disable-editable` (from 28s as per timings in https://trac.sagemath.org/ticket/32406#comment:21 to 70s). This ticket brings a number of speed improvements to mitigate this. URL: https://trac.sagemath.org/32874 Reported by: mkoeppe Ticket author(s): Matthias Koeppe Reviewer(s): Kwankyu Lee
- Loading branch information
Showing
18 changed files
with
305 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,47 @@ | ||
global-include *.c *.cc *.cpp *.h *.hh *.hpp *.inc *.py *.pyx *.pxd *.pxi *.rst *.txt *.tex | ||
|
||
include MANIFEST.in | ||
include pyproject.toml | ||
|
||
prune .tox | ||
|
||
prune sage/ext/interpreters # In particular, __init__.py must not be present in the distribution; or sage_setup.autogen.interpreters.rebuild will not generate the code | ||
prune sage_setup | ||
prune sage_docbuild | ||
prune doc | ||
|
||
# | ||
# Most C and C++ files are generated by Cython and should not | ||
# be included in the sdist. | ||
# | ||
global-exclude *.c | ||
global-exclude *.cpp | ||
|
||
# | ||
# List of C and C++ files that are actual source files, | ||
# NOT generated by Cython. The same list appears in SAGE_ROOT/.gitignore | ||
# | ||
include sage/cpython/debugimpl.c | ||
include sage/graphs/base/boost_interface.cpp | ||
include sage/graphs/cliquer/cl.c | ||
include sage/graphs/graph_decompositions/sage_tdlib.cpp | ||
include sage/libs/eclib/wrap.cpp | ||
include sage/libs/linkages/padics/relaxed/flint_helper.c | ||
include sage/misc/inherit_comparison_impl.c | ||
include sage/modular/arithgroup/farey.cpp | ||
include sage/modular/arithgroup/sl2z.cpp | ||
include sage/rings/bernmm/bern_modp.cpp | ||
include sage/rings/bernmm/bern_modp_util.cpp | ||
include sage/rings/bernmm/bern_rat.cpp | ||
include sage/rings/bernmm/bernmm-test.cpp | ||
include sage/rings/padics/transcendantal.c | ||
include sage/rings/polynomial/weil/power_sums.c | ||
include sage/schemes/hyperelliptic_curves/hypellfrob/hypellfrob.cpp | ||
include sage/schemes/hyperelliptic_curves/hypellfrob/recurrences_ntl.cpp | ||
include sage/schemes/hyperelliptic_curves/hypellfrob/recurrences_zn_poly.cpp | ||
include sage/stats/distributions/dgs_bern.c | ||
include sage/stats/distributions/dgs_gauss_dp.c | ||
include sage/stats/distributions/dgs_gauss_mp.c | ||
include sage/symbolic/ginac/*.cpp | ||
|
||
global-exclude __pycache__ | ||
global-exclude *.py[co] | ||
global-exclude *.bak | ||
global-exclude *.so | ||
global-exclude *~ | ||
prune .tox | ||
prune build | ||
prune dist |
Empty file.
Oops, something went wrong.