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

Get Build Platlib Dir From Build Env #726

Merged
merged 5 commits into from
May 5, 2024

Conversation

grabpot
Copy link
Contributor

@grabpot grabpot commented Apr 30, 2024

When poetry-core is not run in the build environment, the build platlib directory, in particular the cache_tag string, is now derived from the build environment via a subprocess call, similar to _get_sys_tags(). Previously build platlib was always derived from the poetry-core environment, resulting in a build error if the Python version differed between the poetry-core and build environments.

Resolves: python-poetry/poetry#9344

No new tests added. Changes tested by existing build_with_build_py_only test.
No change to documentation required.

Copy link
Member

@radoering radoering left a comment

Choose a reason for hiding this comment

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

some minor suggestions

src/poetry/core/masonry/builders/wheel.py Outdated Show resolved Hide resolved
src/poetry/core/masonry/builders/wheel.py Outdated Show resolved Hide resolved
src/poetry/core/masonry/builders/wheel.py Outdated Show resolved Hide resolved
src/poetry/core/masonry/builders/wheel.py Outdated Show resolved Hide resolved
@grabpot
Copy link
Contributor Author

grabpot commented May 1, 2024

Thanks very much for the feedback. All changes adopted.

Stuart Andrews and others added 5 commits May 5, 2024 16:22
When poetry-core run is not run in build environment,
build platlib directory now derived from build env
via subprocess call, similar to _get_sys_tags()
_get_build_platlib_dir only called if build script

Co-authored-by: Randy Döring <30527984+radoering@users.noreply.github.com>
Co-authored-by: Randy Döring <30527984+radoering@users.noreply.github.com>
Co-authored-by: Randy Döring <30527984+radoering@users.noreply.github.com>
@radoering radoering changed the title Explicity Define Build Platlib Dir From Build Env Get Build Platlib Dir From Build Env May 5, 2024
@radoering radoering merged commit 7e6fa94 into python-poetry:main May 5, 2024
18 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