Conversation
|
i just checked this out and fiddled around a bit to get it running on my windows box. naively running here's the changes: feature/use-uv...tweak-wtf:ayon-launcher:feature/use-uv-playground it was picking up my system python so i added a python flag in i do get version warnings when running the tray because i think it's checking my system python but seems cosmetic. anyways, with cached dependencies the install takes 3s for me rn😅 EDIT: i realized the |
Ah, I've never get into that issue because I am always running pyenv so there's always |
|
So there is another use case perfect for uv - we can solve some of the issues like this one or in general all cases where we now install pyside2/6 and otio to running python environment. To support offline studios, we need to distribute "cached" pip index with AYON somehow and build venv using uv on the fly. Problem with uv and it's caching is (if I understand it correctly) that uv is not caching wheels themselves, but unzipped content and there is no "populate cache" functionality currently. |
concerning the cache location, i fiddled around with seems to work fine. however u must have 1 box that's connected to the internet at least once that would actually do all the caching to the provided dir. all air-gapped clients would use this cache dir for building environments |
|
I would mark this for review. It is not fully finished, but that can be done once reviewed. |
|
I've reverted the python 3.11 requirement so now it is on par with our current poetry version with the same dependencies and everything, just using uv |
|
it still needs some refactoring in shell scripts though |
|
I'm not able to install runtime dependencies. Fails on missing |
Right, I was replacing it with |
but where it was coming from? I cannot find it in the original |
I guess from something like sphinx or mypy... poetry.lock did have it (you can check in develop) |
|
Using it for few days now without major issues, but I'm not running DCCs much so it does not mean much. Linux docker builds do build (even with pyside2). I didn't try macOs, can someone try that? |
I checked the log of dependencies tool, it mentioned installing colorama then Well, I do have this module installed for the same python version used inside AYON. |
You have to upload the AYON launcher build to your AYON server, and use that version of AYON launcher in bundle for which you're creating the dependency package to avoid uninstall. |
this is just temporary until we figure out proper Apple signing workflow
|
For reference #280 |
Switch ayon_console.bat to run using UV
You could just push it to this branch, or add comment here. |
|
I tried build launcher installer and got this error |
|
I build the launcher, updated it in my bundle and attempted to build dependency package. |
I have a local So likely it's coming from this launcher itself being |
if you built it without that |
just to bump up visibility on it - it was caused by wrong argument order fixed by @iLLiCiTiT in 64ed055 |
Changelog Description
uv is an extremely fast Python package installer and resolver, written in Rust, and designed as a drop-in replacement for pip and pip-tools workflows. This PR changes use of uv instead of Poetry to handle dependencies.
Additional info
Thanks to it's speed, we could use it to dynamically build environments for every process we run (ie. when running DCC with different Python, to avoid python dependency conflicts with main process).
Testing:
Better start with clean repo clone - but it should also work with existing venv pretty fine.
create-env,install-runtime, ...)