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

how to pass setup.py arguments #10

Closed
nekopsykose opened this issue Apr 29, 2023 · 3 comments
Closed

how to pass setup.py arguments #10

nekopsykose opened this issue Apr 29, 2023 · 3 comments

Comments

@nekopsykose
Copy link

some projects have something like:

python3 setup.py build --system-lib-1

it's not clear how to pass the same kind of thing when just calling gpep517 build-wheel (setuptools backend). --config-json seems related, but it's not clear what corresponds to what exactly

@mgorny
Copy link
Member

mgorny commented Aug 22, 2023

I'm sorry, I've missed this bug report.

It's basically --config_json '{"--build-option": ["--foo1", "--foo2"]}'. That said, setuptools supports only passing global options and not specific arguments to commands, at least not without hacks.

pypa/setuptools#3896 is the upstream bug for documenting this.

@mgorny
Copy link
Member

mgorny commented Aug 22, 2023

(we usually ask upstreams to make configuration via envvars possible)

@nekopsykose
Copy link
Author

thanks!

@mgorny mgorny closed this as completed Aug 23, 2023
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

No branches or pull requests

2 participants