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 editable installations for Poetry packages #2400

Merged
merged 1 commit into from
May 22, 2020

Conversation

sdispater
Copy link
Member

Pull Request Check List

  • Added tests for changed code.
  • Updated documentation for changed code.

Followup to #2360

Basically, editable installs for transitive packages failed due to the build_script attribute not being available on standard Package objects.

Also, the generated scripts weren't correct if the callable was a module attribute.

Finally, the loading of editable installed packages was not correct and they weren't marked as being directory dependencies which would lead to them being always updated when installing.

Note that we will rely on PEP 610 in the future for detection of such packages.

@sdispater sdispater added the area/installer Related to the dependency installer label May 9, 2020
poetry/installation/pip_installer.py Show resolved Hide resolved
poetry/installation/pip_installer.py Outdated Show resolved Hide resolved
Copy link
Member

@abn abn left a comment

Choose a reason for hiding this comment

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

One (optional) recommendation. Otherwise, lgtm.

@PetterS
Copy link
Contributor

PetterS commented May 20, 2020

@sdispater Anything left to do here? I'd love to give this a spin.

@sdispater sdispater merged commit abee30f into develop May 22, 2020
@sdispater sdispater deleted the fix-editable-installs branch May 22, 2020 07:53
@abn abn mentioned this pull request Jul 25, 2020
3 tasks
Copy link

github-actions bot commented Mar 1, 2024

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/installer Related to the dependency installer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants