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

Is there a way to trigger release target build for build_ext --inplace command? #293

Closed
lycantropos opened this issue Sep 20, 2022 · 3 comments

Comments

@lycantropos
Copy link

lycantropos commented Sep 20, 2022

I find it useful that build_ext --inplace command copies artifacts into target destination, but by default setuptools-rust builds dev target, is there a way (e.g. using some environment variable) to switch to release target?

Thanks in advance.

@davidhewitt
Copy link
Member

Maybe setup.py build_rust --release ?

@davidhewitt
Copy link
Member

Although I'm tempted to suggest this might be better served by maturin develop --release, as setup.py as an entry point is deprecated so I've been considering dropping the build_rust subcommand. (#259)

You can also achieve this yourself by writing custom logic in your setup.py which sets args for your RustExtension.

@lycantropos
Copy link
Author

@davidhewitt: thanks, build_rust --release --inplace works

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