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

avoid conflicting pip package name with ruamel.yaml #68

Merged
merged 3 commits into from
Sep 1, 2020

Conversation

minrk
Copy link
Member

@minrk minrk commented Aug 20, 2020

ruamel_yaml and ruamel.yaml are equivalent names, according to pip package normalization.
The result is that while ruamel_yaml is not ruamel.yaml and can coexist as conda packages,
pip install ruamel.yaml will consider the dependency already satisfied by ruamel_yaml if it is present, when it should not.

The fix is to use a package name in setup.py that avoids such a collision.
Since this is a conda-only fork, I went with adding _conda, lacking a more obvious choice.

The alternative fix is to remove any pip metadata from the package, but it wasn't obvious how to robustly avoid pip noticing that the package is present.

Related to #1 and conda-forge/ruamel.yaml-feedstock#7

pip package normalization makes ruamel_yaml and ruamel.yaml equivalent,
so `pip install ruamel.yaml` will not install the real package
if `ruamel_yaml` is installed.

Add `_conda_fork` to the package name to avoid this problem.
@conda-forge-linter
Copy link

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants