Best Practices with Virtualenv? (venv/pipenv/poetry etc.) [Possible Mise Improvement] #1835
Unanswered
BuildBackBuehler
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey all,
Been using Mise for a surprisingly long time considering the questions I'd like to ask. I suppose I widdled it down to the least dumber-est for yas
I've relied on pipenv for a long time because I hate Conda with a passion and I find Pip without the smart package versioning to be too big of an annoyance. Although, I guess they took care of that with Pip 24(?)...maybe earlier and I just didn't notice/know haha.
I was coming around with Conda using Mamba, but its still a bit obtuse for my tastes.
The thing is, I just want the one that'll allow me to be the laziest I can be aka trust there won't be errors, the most intuitive & automatic. With new Mise features, I think I can probably achieve that with any of 'em honestly. I figure worst case scenario I'd write a wee script to take whichever the extra inch.
So it seems at the moment with Mise .venv is the only option for automatic creation of .venv upon folder entry. I'm not sure if I've jerry-rigged it to work with a Pipenv created virtualenv or if it is Pipenv working within .venv
[env] PIPENV_VENV_IN_PROJECT=1 PIPENV_FILE = "~/local/gitrepos/comfyui/pipfile" PIPENV_MAX_DEPTH = "7" _.python.venv = { path = "~/gitrepos/comfyui/.venv", create = true }
Now, my 1 problem with using Pipenv is the fact that I can't setup a default_python_package file [I don't think?] and same would go for virtenv_def_pack. Though I suppose that could be a nifty improvement (if in the file a user doesn't write their package provider, it defaults to pip, but otherwise you could write in "package_provider=pipenv/poetry")
The End!
...or is it? Random Qs, rather than make another discussion...
Is it best practice to disregard adding the Mise tools into my .zshenv file (where I've got a bunch of if [[ directory + python command ]]; then path = (
path to python/bin
\path
))? I imagine based on the docs, its taken care of.Also wondering how I can link Mise's Python, or whatever, into Brew. Do I just do the ol' Brew install [Mise Python Path] --cask trick or would that mess everything up? I ask this because I have had difficulties with compiling packages with Clang, even though it is installed via /usr/bin/clang and brew/llvm/clang. It may have been the packages being uncompile-able, though.
Thanks for any help!
A pup pic to thank you for your time
Beta Was this translation helpful? Give feedback.
All reactions