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

Fix Conda Python detection on Windows #2279

Merged
merged 1 commit into from
Mar 7, 2024
Merged

Fix Conda Python detection on Windows #2279

merged 1 commit into from
Mar 7, 2024

Conversation

charliermarsh
Copy link
Member

Summary

In #2102, I did some refactor, and changed a method to return the Python executable path rather than the parent directory path. But I missed this one codepath for Conda on Windows.

Closes #2269.

Test Plan

  • Installed micromamba on my Windows machine.
  • Reproduced the failure in the linked issue.
  • Verified that python.exe exists at ${CONDA_PREFIX}\python.exe.
  • Ran with this change; installed successfully.

@charliermarsh charliermarsh added bug Something isn't working windows Specific to the Windows platform labels Mar 7, 2024
@charliermarsh
Copy link
Member Author

Gonna add some Conda testing on CI in a subsequent PR.

@charliermarsh charliermarsh enabled auto-merge (squash) March 7, 2024 14:43
@charliermarsh charliermarsh merged commit c3cd550 into main Mar 7, 2024
7 checks passed
@charliermarsh charliermarsh deleted the charlie/conda branch March 7, 2024 14:45
@MatthieuDartiailh
Copy link

Amazing !

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

Successfully merging this pull request may close these issues.

Python interpreter query fails on Windows in a conda environment starting with 0.1.14
2 participants