-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[Feature Request] Python 3.12 support #17842
Comments
Side note, if the maintainers haven't already checked out cibuildwheel, I think this project could use it and remove a lot of the scripts that have been written to accomplish the same thing (building lots of wheels and doing manylinux linking from a CMake project) https://github.com/pypa/cibuildwheel |
Yeah, it is a great choice. onnxruntime-extensions packages are built with that tool. I tried to enable it for this repo too: However, I didn't have enough time to finish the work. We need to let setup.py invoking tools/ci_build/build.py, not the reverse. And once we have that, we could also easily publish a sdist. However, cibuildwheel tool has cons too. It needs to download a lot of things from the public internet. So I have reliability and security concerns on that. |
Until ORT 1.17 is released, you can compile from source by following the build instructions. To build for my arm-based Mac, I added a Commands I used inside my 3.12 conda env on M3 Pro Mac:
|
Thanks @timbodeit. Took me a while to get the build environment working under windows and had to build with --skip_tests (like you did) but in the end I could build 1.17 wheels. I had to add the windows 10 SDK to the VS 2022 build tools. The build was still looking for the wrong version in C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC which I "solved" by copying the version I had to the one build was looking for. |
I tried to build for windows but it was building only |
You might have two Pythons in your system. If you run the build with a 32-bit python, you will have a 32-bit wheel. If you run the build with a 64-bit python, you will have a 64-bit wheel. |
I only have one 64-bit python in my path (the Microsoft app one, which states "Architecture: x64")
|
Is there a way of building onnxruntime-gpu with this? I cannot find any reference to this in the build docs |
No. MacOS doesn't support CUDA. |
I am building for windows |
ONNX Runtime 1.17.0 is released with this new feature. |
## Description of changes Chroma did not support Python 3.12 because of our dependency on the ONNX runtime for our default embedding function. As of version 1.17.0, ONNX supports python 3.12: microsoft/onnxruntime#17842 (comment) This already automatically fixes the issue for Chroma users when they install the new version of ONNX / reinstall Chroma. This PR is just to update our test and release actions to also use python 3.12. ## Test plan These are changes to test workers. ## Documentation Changes N/A
## Description of changes Chroma did not support Python 3.12 because of our dependency on the ONNX runtime for our default embedding function. As of version 1.17.0, ONNX supports python 3.12: microsoft/onnxruntime#17842 (comment) This already automatically fixes the issue for Chroma users when they install the new version of ONNX / reinstall Chroma. This PR is just to update our test and release actions to also use python 3.12. ## Test plan These are changes to test workers. ## Documentation Changes N/A
Describe the feature request
this package cannot be installed using Python 3.12 and is only publishing wheels, so cannot be compiled from source/
Describe scenario use case
Please publish Python 3.12 wheels
The text was updated successfully, but these errors were encountered: