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

Explicitly define the build/lib* paths #634

Merged
merged 1 commit into from
Sep 10, 2023

Conversation

robbotorigami
Copy link
Contributor

@robbotorigami robbotorigami commented Aug 31, 2023

Resolves: python-poetry/poetry#8390
Resolves: python-poetry/poetry#6197

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

This should fix issues with files not getting included / the wrong file getting included due to build/lib* naming differences. I tested it against the repo egorchakov made and it seems to have resolved what they were seeing.

I looked at a few different ways to resolve this, and ultimately decided the best solution was to have poetry determine what build folder names should be used rather than letting distutils figure it out. I couldn't come up with a solution that used the name generated by distutils that didn't involve a lot of kludging or be fragile to any changes. I think it probably makes more sense for the poetry build system to determine where things get built anyway. Open to suggestions though!

It's possible that this will have merge conflicts with #633 since they're both modifying the same code, if so I can rebase after that's merged

@robbotorigami robbotorigami changed the title Explicitly use the full distutils build/lib* paths Explicitly define the build/lib* paths Sep 1, 2023
@sonarcloud
Copy link

sonarcloud bot commented Sep 10, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@radoering radoering merged commit 56b904d into python-poetry:main Sep 10, 2023
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants