-
-
Notifications
You must be signed in to change notification settings - Fork 490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build/bin/sage-spkg
: Add options for checking, cleaning separately from build/install
#36738
Conversation
03d7063
to
1a36540
Compare
1a36540
to
3af1f45
Compare
No major issues but I noticed a few small things that could be improved:
|
…n if more than one given
Improved in d41c032 |
…nstallation only once
Thanks. I've made improvements in 756ae53.
Indeed. But we can perhaps revisit this after #36747, which unifies handling of "script" and "normal" packages. I also want to clean up the "clean" vs "uninstall" terminology. |
Documentation preview for this PR (built with commit 756ae53; changes) is ready! 🎉 |
################################################################## | ||
MODE_SWITCHES=${MODE_SWITCHES#, } | ||
case "$MODE_SWITCHES" in | ||
*,*) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes e.g. -d -d
an error, but it's good enough, thanks.
… to the post-install phase <!-- ^^^^^ 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 sagemath#1234" use "Introduce new method to calculate 1+1" --> <!-- Describe your changes here in detail --> Previously, on `sdh_pip_install`, the wheel file is staged in DESTDIR, but the wheel is installed immediately. Now we store a new script `spkg-pipinst`, which is run after unloading DESTDIR (and before any `spkg-postinst` script), which does the actual installation of the wheel. - This resolves sagemath#30956 (fixing the wheel URLs shown in `sage -pip freeze`) -- except when `SAGE_SUDO` is set. Apart from this and some changes to the messages displayed during package installation, this should make no difference for any of our packages. Just so that it is tested for at least one package in CI, we include a small package update. Together with - sagemath#36738 and - sagemath#36740, this is preparation for requiring only the build dependencies ("build- system requires") while building a wheel for the package, and to require the runtime dependencies ("install-requires") only later, when the wheel is to be installed. <!-- 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 sagemath#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. - [x] The description explains in detail what this PR is about. - [x] 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 - sagemath#12345: short description why this is a dependency - sagemath#34567: ... --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: sagemath#36743 Reported by: Matthias Köppe Reviewer(s): John H. Palmieri
…cript packages <!-- ^^^^^ 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 sagemath#1234" use "Introduce new method to calculate 1+1" --> <!-- Describe your changes here in detail --> Split out and updated from sagemath#29386. The section of `build/make/Makefile.in` that deals with script packages can be consolidated with the section on normal packages later, in a follow-up PR after sagemath#36740, sagemath#36738. We switch the `spkg-install` scripts of the `sage*` script packages to the templated versions (`spkg-install.in`), which is a simplification. `spkg-check` remains as is because we still invoke it directly (changing this will need sagemath#36738). Resolves sagemath#29386. <!-- 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 sagemath#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. - [x] The description explains in detail what this PR is about. - [x] 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 - sagemath#12345: short description why this is a dependency - sagemath#34567: ... --> - Depends on sagemath#36737 (for testing) <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: sagemath#36747 Reported by: Matthias Köppe Reviewer(s): Michael Orlitzky
<!-- ^^^^^ 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 sagemath#1234" use "Introduce new method to calculate 1+1" --> <!-- Describe your changes here in detail --> `make SPKG-check` runs the testsuite of `SPKG` via sage-spkg. This builds on - sagemath#36738 - sagemath#36747 <!-- 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 sagemath#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. --> - [ ] 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 - sagemath#12345: short description why this is a dependency - sagemath#34567: ... --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: sagemath#37022 Reported by: Matthias Köppe Reviewer(s): Kwankyu Lee, Matthias Köppe
The
sage-spkg
script installs normal and wheel packages.We create new options that make it possible to invoke the phases of the installation separately.
This is preparation for improvements in
Makefile.in
in combination with #36740📝 Checklist
⌛ Dependencies