Compiling a library at installation instead of precompiling? #3630
Answered
by
davidhewitt
somehybrid
asked this question in
Questions
-
Is it possible to compile a library when installing a package instead of precompiling it and bundling? |
Beta Was this translation helpful? Give feedback.
Answered by
davidhewitt
Dec 6, 2023
Replies: 1 comment 3 replies
-
Sure, both maturin and setuptools-rust are designed to support this automatically on platforms without precompiled wheels by building the source distribution. To get the result you want just don't distribute wheels, or alternatively opt out of downloading binary wheels when doing the pip install. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
somehybrid
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sure, both maturin and setuptools-rust are designed to support this automatically on platforms without precompiled wheels by building the source distribution.
To get the result you want just don't distribute wheels, or alternatively opt out of downloading binary wheels when doing the pip install.