docs: Add Pipx & uv as recommended install methods#3549
docs: Add Pipx & uv as recommended install methods#3549justinmayer wants to merge 2 commits intomainfrom
uv as recommended install methods#3549Conversation
|
Personally, I'd still use the approach that involves the least effort for users, rather than recommending them to first install other software just to install this one. e.g. On a Linux system (such as Ubuntu), Pelican may already be packaged in your distro, in which case you can install it with the usual install command. e.g. On Ubuntu: Otherwise, you can install the latest version via pip using: (If the |
8dfce9b to
b5eea07
Compare
|
Thank you for sharing your thoughts, Sam. I made a few follow-up changes:
I am not inclined to mention distro packaging. Distro package versions can often lag behind the latest Pelican release, which can lead to users filing issues that have already been resolved in shipped releases. Folks who are already aware of this trade-off can, of course, choose to install via their distro’s package manager anyway. |
|
Documenting initial install is a hard problem, because there's so little you can rely on. I'm going to respond as requested, but I think my proposals are not what you want. First, having 4 recommended methods seems bad. Harder to understand, harder to maintain. I just want one. At the very least you could describe other methods, but not say they are "recommended"; preferably I'd just ditch them. Now, people install in different ways, and they all want their own method, so do with this what you will. Second, I'd choose the venv/python method, because it's the only one that doesn't require further install (they are both already in python3 through -m). It looks like you moved away from this (perhaps due to #3536?), but wouldn't venv would fix that? |
b5eea07 to
2a4fb9f
Compare
|
Thank you for the input, @boxydog. I think the real fix for #3536 was the That said, I agree that having four recommended methods is silly, so I changed that in my latest commit. Thanks again for the feedback! |
|
Nice adjustment. Looks good: 1 recommended method, a lot of other possibly useful info about other installers. P.S. I'd be happy to do more for pelican, but it's not obvious to me what would be likely to help the most, so I don't. Always happy to do something if I can. |
|
I personally suggest in docs and articles only installation with pip and venv because they are part of the standard library and installing external packages are not required. In addition if you are already a user of uv or pipx you will know how to use them to install a Python package I can't see the point to add these additional instructions in the documentation of a package, you need to maintain them during the time, with risks of broken outdated instructions. Of course it's just my point of view. |
|
|
||
| You can install Pelican via several different methods. | ||
|
|
||
| **Recommended method:** `Pip <https://pip.pypa.io/>`_ User Install |
There was a problem hiding this comment.
I think it might be worth making uv the recommended method; it solves so many of the possible permutations (python versions, dependency locks, etc).
If we do that, we can rewrite this with a whole bunch fewer variations:
-
Basic install:
- install uv
uv tool install pelican
-
Optional packages:
uv tool install 'pelican[markdown]'
That gets rid of, like, all of this :D
:) I'd still choose pip, since it's already installed, but I won't die on this hill. I do think it's good to have one recommended method, which you already did. |
|
Thoughts:
I don't feel hugely strongly about which method is presented as "blessed", just that it should be only one. |
Pip and virtual environments can pose Pelican installation challenges for newcomers, so these changes include recommendations for Pipx and
uvto facilitate installing Pelican.Resolves: #3536
See also: #2560