fix: do not let uv create the virtual environment#1218
fix: do not let uv create the virtual environment#1218SMoraisAnsys wants to merge 6 commits intomainfrom
Conversation
AlejandroFernandezLuces
left a comment
There was a problem hiding this comment.
LGTM, I would have preferred to use the faster uv command to be favoured, but I understand the issue you mentioned.
I think we have had issues in the past when using |
Yep - uv tends to create a virtual environment for you, and we ended up swtching to the |
This PR homogenize the creation of virtual environments in
build-wheelhouseandcheck-licenseactions by creating the venv using python.Tip
Using
uvto create the venv can lead to a situation whereuvinstalls a new version of python. Recently I was refactoring pyaedt's GH workflow and one of them consist in creating a wheelhouse in Rocky Linux. However, the python provided byactions/setup-pythondo not work due to GLIC incompatibility. Instead of failing, the workflow kept moving anduvwas installing a new python version under the hood. Note that this python is compatible with the Rocky Linux container and allow us to proceed smoothly.Extra question: should we allow the use of python
uvwhen setting python through our action ? Here could be the associated implementation #1219