-
Notifications
You must be signed in to change notification settings - Fork 760
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
pyo3-build-config: Replace TargetInfo
with target_lexicon::Triple
#2253
Conversation
d4b59aa
to
2c4d82d
Compare
if !env_vars.any() && is_not_cross_compiling(host, &target_info) { | ||
return Ok(None); | ||
} | ||
// FIXME: This field is currently unused. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we don't need to address these FIXME
s right now since we're going to remove cross_compiling
in a new minor version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, certainly. These FIXMEs will be removed with cross_compiling()
in v0.17.
Perhaps I should've used WONTFIX:
instead of FIXME:
😁.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor suggestions and one functional question on serializing the whole interpreter config into DEP_PYTHON_PYO3_CONFIG
.
Add a new public crate function `cross_compile_from_to()` using `target_lexicon::Triple` arguments instead of plain strings used in `cross_compile()`. Deprecate `pyo3_build_config::cross_compile()` since v0.17. Attempt to extract common code patterns into methods and standalone helper functions. Add docstrings to the new private items. Make some of the new helper functions public within the PyO3 crate and reuse them in the build scripts. Add PYO3_CROSS_PYTHON_VERSION parsing unit test. Add a ChangeLog entry mentioning the new `pyo3-build-config` API.
Add a new public crate function
cross_compile_from_to()
usingtarget_lexicon::Triple
arguments instead of plain stringsused in
cross_compile()
.Attempt to extract common code patterns into methods and standalone
helper functions. Add docstrings to private items.
Make some of the new helper functions public within the PyO3 crate
and reuse them in the build scripts.
No user visible functionality change.