Make install check aware of alternative package managers#1007
Draft
matsl wants to merge 1 commit into
Draft
Conversation
rswgnu
reviewed
Jul 11, 2026
rswgnu
left a comment
Owner
There was a problem hiding this comment.
You are on the right track. I would finish it off and add quelpa.
| (defun hypb:users-package-manager () | ||
| "Return the package manager in use. | ||
| Current supported package managers are `straight', `elpaca', and `package'." | ||
| (cond ((and (featurep 'straight) (fboundp 'straight-use-package)) 'straight) |
Collaborator
Author
There was a problem hiding this comment.
I read up on quelpa and it seems it is based on top of package.el. Users can mix installing using quelpa and package.el directly. So it is not clear a user would prefer to install the packages we dynamically depend on using quelpa. So we can let package.el handle a potential install for quelpa users. It will not cause any big problem for them if I understand things correctly.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Make install check aware of alternative package managers and avoid doing
packet-install for those. Adding a
defcustomso users can choose to get anautomated install if using the standard
package.el.Why
There are multiple package managers so we can't assume users use
package.el. If it is not used then using it to install a package would likely
be an error an could damage a users setup or at least not be what the user
expects.
Supporting different package managers for an automatic install is beyond
where we want to go.
Note
The idea is to use
hypb:ensure-dependencyin all places where we today topacket-install-p. That would beBefore implementing that could you, @rswgnu, take a look at what you think of
using this idea? If that makes sense I can complete this Draft.