-
Notifications
You must be signed in to change notification settings - Fork 70
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
Include pipx
with proper configuration
#208
Comments
Hi @huxuan! Thanks for opening this issue. Can you expand a little more on this use case? In particular, what's the different between running |
Generally if possible, I would like to install those standalone tools in isolated virtual environments. And currently, there are at least three of them:
All of these tools have nothing to do with building documentation, and installing them with |
Looks like you can also install pipx from apt https://pipx.pypa.io/latest/installation/ (https://docs.readthedocs.io/en/stable/config-file/v2.html#build-apt-packages). |
Wow, that is cool! I did not notice that configuration. Even though that does not ensure to use the latest version of pipx, it should be a better solution than the workaround I mentioned in the issue description. Thanks! |
Hi, sorry for heads up again. TL;DR; Can we add readthedocs-docker-images/Dockerfile Line 137 in 4d356fa
I can send a pull request if it is OK. I tried to use the
One solution could be running The currently workaround I use is as following which is already better than the previous version. :-) build:
apt_packages:
- pipx
jobs:
pre_create_environment:
- PIPX_BIN_DIR=$READTHEDOCS_VIRTUALENV_PATH/bin pipx install mypy[reports]==1.10.1
- PIPX_BIN_DIR=$READTHEDOCS_VIRTUALENV_PATH/bin pipx install pdm==2.15.4 |
@huxuan can you try running |
Currently, I want to avoid using |
pipx
with proper configurationpipx
with proper configuration
Though we already have
asdf
, it might be better to also havepipx
so that we can install Python Applications directly from PyPI when needed.Current workaround in
.readthedocs.yaml
:The mostly inconvenience is that we have to specify the
PIPX_BIN_DIR
to make it actually work. It would be great if we can have it properly configured just likeasdf
.The text was updated successfully, but these errors were encountered: