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

Add build_target parameter to PythonPackage #3575

Open
wants to merge 1 commit into
base: 5.0.x
Choose a base branch
from

Conversation

Flamefire
Copy link
Contributor

@Flamefire Flamefire commented Feb 4, 2025

Using buildcmd to pass options to setup.py is confusing and makes it impossible to fully replace the build command.
Introduce build_target similar to install_target and deprecate passing a target and optional options via buildcmd.

The old behavior is used when buildcmd is a known setup.py command such as build or build_ext or a single word, e.g. clean.

My first attempt was to only detect buildcmd = '%(python)s ...' as an immediate fix for #3570 but that would limit us to much going forward when a Python package build uses a custom command like ./build_wheel --foo

If this is acceptable I can open an accompanying PR to update the EasyConfigs to replace buildcmd.

Using `buildcmd` to pass options to `setup.py` is confusing and makes it
impossible to fully replace the build command.
Introduce `build_target` similar to `install_target` and deprecate
passing a target and optional options via `buildcmd`.

The old behavior is used when `buildcmd` is a known setup.py command
such as `build` or `build_ext` or a single word, e.g. `clean`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant