Skip to content
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

venv detection not working with micromamba #1866

Closed
1 task done
nugend opened this issue Apr 29, 2023 · 0 comments · Fixed by #1889
Closed
1 task done

venv detection not working with micromamba #1866

nugend opened this issue Apr 29, 2023 · 0 comments · Fixed by #1889
Labels
🐛 bug Something isn't working

Comments

@nugend
Copy link

nugend commented Apr 29, 2023

  • I have searched the issue tracker and believe that this is not a duplicate.

The get_venv_python method on Windows assumes that the Python interpreter in a venv is installed under Scripts below the venv root. With micromamba, it is actually installed directly underneath the venv root.

I’m using micromamba since it’s so much faster than Mamba or Conda.

I think the only workaround at the moment is to explicitly set the saved python using PDM_PYTHON or something like that.

even if this isn’t something the project wishes to address, thought anyone who happened to bump into this might want to know about it.

Motivation: the reason I need to futz with this is that I’m using building multiple platform specific wheels and the default dependency resolution for building is a bit finnicky right now. So making the build command just use a manually specified venv is really nice and micromamba is the fastest one out there.

Thanks for this project, btw. Kinda wish it was just the standard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant