Navigation Menu

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

Correct bin paths in CondaEnv for Windows #535

Merged
merged 3 commits into from Dec 26, 2021

Conversation

Tolker-KU
Copy link
Contributor

Closes #514.

@Tolker-KU Tolker-KU force-pushed the feature/windows_conda_bin_paths branch from df223ab to a364bdf Compare December 25, 2021 20:41
Copy link
Collaborator

@cjolowicz cjolowicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Disclaimer: I have no knowledge of conda internals. Took a look at the conda.activators module. Shell activators inherit from a common base class _Activator. Invoking its activate method ends up constructing this list of PATH entries for Windows, via the following call chain:

activate
  build_activate
    _build_activate_stack
      _add_prefix_to_path
        _get_starting_path_list
          _get_path_dirs

See https://github.com/conda/conda/blob/f60f0f1643af04ed9a51da3dd4fa242de81e32f4/conda/activate.py#L563-L572 as quoted in the code comment.

@cjolowicz
Copy link
Collaborator

@thatcr does this fix your issue?

@Tolker-KU
Copy link
Contributor Author

Tolker-KU commented Dec 26, 2021

@thatcr does this fix your issue?

I've run the example noxfile stated in the issue on Windows using the patched version of Nox and it works as accepted. (Also verified that it is failing on HEAD).

@cjolowicz cjolowicz merged commit 8dbb6e7 into wntrblm:main Dec 26, 2021
@Tolker-KU Tolker-KU deleted the feature/windows_conda_bin_paths branch December 27, 2021 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

conda bin_paths are missing Library\... subdirectories on windows
2 participants