You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gh-37391: Make installation of "wheel" packages less noisy
<!-- ^^^^^
Please provide a concise, informative and self-explanatory title.
Don't put issue numbers in there, do this in the PR body below.
For example, instead of "Fixes#1234" use "Introduce new method to
calculate 1+1"
-->
<!-- Describe your changes here in detail -->
Some care for `build/bin/sage-spkg`, reducing unhelpful verbosity. In
particular, for "wheel" packages (https://deploy-livedoc--
sagemath.netlify.app/html/en/developer/packaging#package-source-types),
there is no build step, so there is no point in talking about what C
compiler is in use.
Also saving a few lines of output (and making it clearer who does what)
by prefixing the output from the various `spkg-...` scripts.
Example:
```
$ make packaging-no-deps
[packaging-23.2] Using cached file /Users/mkoeppe/s/sage/sage-
rebasing/worktree-pristine/upstream/packaging-23.2-py3-none-any.whl
[packaging-23.2] Setting up build directory /Users/mkoeppe/s/sage/sage-
rebasing/worktree-pristine/local/var/lib/sage/venv-
python3.11/var/tmp/sage/build/packaging-23.2
[packaging-23.2] [spkg-piprm] Found existing installation: packaging
23.2
[packaging-23.2] [spkg-piprm] Uninstalling packaging-23.2:
[packaging-23.2] [spkg-piprm] Successfully uninstalled packaging-23.2
[packaging-23.2] Removing stamp file /Users/mkoeppe/s/sage/sage-
rebasing/worktree-pristine/local/var/lib/sage/venv-
python3.11/var/lib/sage/installed/packaging-23.2
[packaging-23.2] [spkg-install] Staged wheel file, staged
/Users/mkoeppe/s/sage/sage-rebasing/worktree-
pristine/local/var/lib/sage/venv-
python3.11/var/lib/sage/scripts/packaging/spkg-requirements.txt
[packaging-23.2] Moving package files from temporary location
/Users/mkoeppe/s/sage/sage-rebasing/worktree-
pristine/local/var/lib/sage/venv-
python3.11/var/tmp/sage/build/packaging-23.2/inst to
/Users/mkoeppe/s/sage/sage-rebasing/worktree-
pristine/local/var/lib/sage/venv-python3.11
[packaging-23.2] [spkg-pipinst] Using pip 23.3.1 from
/Users/mkoeppe/s/sage/sage-rebasing/worktree-
pristine/local/var/lib/sage/venv-python3.11/lib/python3.11/site-
packages/pip (python 3.11)
[packaging-23.2] [spkg-pipinst] Looking in links:
/Users/mkoeppe/s/sage/sage-rebasing/worktree-
pristine/local/var/lib/sage/venv-python3.11/var/lib/sage/wheels
[packaging-23.2] [spkg-pipinst] Processing /Users/mkoeppe/s/sage/sage-
rebasing/worktree-pristine/local/var/lib/sage/venv-
python3.11/var/lib/sage/wheels/packaging-23.2-py3-none-any.whl (from -r
/Users/mkoeppe/s/sage/sage-rebasing/worktree-
pristine/local/var/lib/sage/venv-
python3.11/var/lib/sage/scripts/packaging/spkg-requirements.txt (line
1))
[packaging-23.2] [spkg-pipinst] Installing collected packages: packaging
[packaging-23.2] [spkg-pipinst] ERROR: pip's dependency resolver does
not currently take into account all the packages that are installed.
This behaviour is the source of the following dependency conflicts.
[packaging-23.2] [spkg-pipinst] meson-python 0.15.0 requires
meson>=0.63.3; python_version < "3.12", which is not installed.
[packaging-23.2] [spkg-pipinst] tox 4.11.1 requires cachetools>=5.3.1,
which is not installed.
[packaging-23.2] [spkg-pipinst] tox 4.11.1 requires chardet>=5.2, which
is not installed.
[packaging-23.2] [spkg-pipinst] Successfully installed packaging-23.2
[packaging-23.2] Deleting build directory /Users/mkoeppe/s/sage/sage-
rebasing/worktree-pristine/local/var/lib/sage/venv-
python3.11/var/tmp/sage/build/packaging-23.2
[packaging-23.2] Finished installing packaging-23.2
```
Also displaying build times for each package, even when using `make
V=0`, but suppressing very short build times:
```
$ make V=0
...
[setuptools_scm-8.0.4] installing. Log file: /Users/mkoeppe/s/sage/sage-
rebasing/worktree-pristine/logs/pkgs/setuptools_scm-8.0.4.log
[hatchling-1.20.0] installing. Log file: /Users/mkoeppe/s/sage/sage-
rebasing/worktree-pristine/logs/pkgs/hatchling-1.20.0.log
[setuptools_scm-8.0.4] successfully installed.
[hatchling-1.20.0] successfully installed.
...
[sage_conf-10.3.beta8] successfully installed (real 11.36 user 8.32
sys 2.67).
[pyproject_metadata-0.7.1] successfully installed (real 16.57 user
10.70 sys 2.97).
[ipykernel-6.27.1] successfully installed (real 19.31 user 11.35 sys
3.71).
```
<!-- Why is this change required? What problem does it solve? -->
<!-- If this PR resolves an open issue, please link to it here. For
example "Fixes#12345". -->
<!-- If your change requires a documentation PR, please link it
appropriately. -->
### 📝 Checklist
<!-- Put an `x` in all the boxes that apply. -->
<!-- If your change requires a documentation PR, please link it
appropriately -->
<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
<!-- Feel free to remove irrelevant items. -->
- [x] The title is concise, informative, and self-explanatory.
- [ ] The description explains in detail what this PR is about.
- [ ] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation accordingly.
### ⌛ Dependencies
<!-- List all open PRs that this PR logically depends on
- #12345: short description why this is a dependency
- #34567: ...
-->
<!-- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
URL: #37391
Reported by: Matthias Köppe
Reviewer(s): Kwankyu Lee
# Until https://github.com/sagemath/sage/issues/34209 switches us to PEP 660 editable wheels
55
55
export SETUPTOOLS_ENABLE_FEATURES=legacy-editable
56
-
time sdh_pip_editable_install .
56
+
sdh_pip_editable_install .
57
57
58
58
if [ "$SAGE_WHEELS" = yes ]; then
59
59
# Additionally build a wheel (for use in other venvs)
@@ -69,10 +69,10 @@ else
69
69
if [ "$SAGE_WHEELS" = yes ]; then
70
70
# Use --no-build-isolation to avoid rebuilds because of dependencies:
71
71
# Compiling sage/interfaces/sagespawn.pyx because it depends on /private/var/folders/38/wnh4gf1552g_crsjnv2vmmww0000gp/T/pip-build-env-609n5985/overlay/lib/python3.10/site-packages/Cython/Includes/posix/unistd.pxd
0 commit comments