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

Attempt to fix the local/editable file installs #5870

Merged
merged 4 commits into from
Aug 26, 2023
Merged

Conversation

matteius
Copy link
Member

@matteius matteius commented Aug 26, 2023

Attempt to fix the local/editable file installs which broke when we refactored away from requirementslib.

The issue

Fixes #5858

The fix

How does this pull request fix your problem? Did you consider any alternatives? Why is this the best solution, in your opinion?

The checklist

  • Associated issue
  • A news fragment in the news/ directory to describe this fix with the extension .bugfix.rst, .feature.rst, .behavior.rst, .doc.rst. .vendor.rst. or .trivial.rst (this will appear in the release changelog). Use semantic line breaks and name the file after the issue number or the PR #.

Copy link
Contributor

@oz123 oz123 left a comment

Choose a reason for hiding this comment

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

LGTM.

if isinstance(el, Iterable) and not isinstance(el, str):
el, el_copy = tee(el, 2)
yield from unnest(el_copy)
yield from unnest(el)
Copy link
Contributor

Choose a reason for hiding this comment

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

This makes total sense to use recursion here. I wonder how it was not done before.

@oz123 oz123 merged commit a3b197e into main Aug 26, 2023
19 checks passed
@oz123 oz123 deleted the file-installs-take3 branch August 26, 2023 12:54
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.

2023.8.19 through to 2023.8.22 break editable package installation
2 participants