Skip to content

Fix editable installations for Poetry packages#2400

Merged
sdispater merged 1 commit into
developfrom
fix-editable-installs
May 22, 2020
Merged

Fix editable installations for Poetry packages#2400
sdispater merged 1 commit into
developfrom
fix-editable-installs

Conversation

@sdispater
Copy link
Copy Markdown
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
Comment thread poetry/installation/pip_installer.py
Comment thread poetry/installation/pip_installer.py Outdated
@sdispater sdispater force-pushed the fix-editable-installs branch from 241c5dd to 90d2941 Compare May 15, 2020 15:43
Copy link
Copy Markdown
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
Copy Markdown
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
@github-actions
Copy link
Copy Markdown

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