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

Installing python-embree from local copy of the repository #25

Open
natsuwater opened this issue Oct 5, 2024 · 1 comment
Open

Installing python-embree from local copy of the repository #25

natsuwater opened this issue Oct 5, 2024 · 1 comment

Comments

@natsuwater
Copy link

Python-embree cannot be installed from pypi for python 3.12.

I made some modification to setup.py and file layout so that pip install . works for python-embree, as in
https://github.com/natsuwater/python-embree/tree/develop,

You can build wheel and pip install for Windows and Linux, on your local machine, with python 3.12.
Tested only on python 3.12 on Windows11 / Ubuntu 22.04.

> git clone -b develop https://github.com/natsuwater/python-embree.git
> cd python-embree
> pip install .

Embree3 binary files (3.13.5) are downloaded during the building process using embree3_windows.bat or embree3_linux.sh.
So, you do not need to install embree manually.
Note that extra_link_args=["-Wl,-rpath,$ORIGIN"] in setup.py removes the need for setting LD_LIBRARY_PATH environment variable.

Hope this might help someone who wants to use python-embree on python 3.11 or newer.

@ivyyye
Copy link

ivyyye commented Dec 30, 2024

Tried a whole bunch of troubleshooting with the original
-> git clone https://github.com/sampotter/python-embree
-> cd python-embree
-> pip install .

but had trouble building wheels for embree despite updating cython, setuptools, GCC, python3.10, cmake, and have cleared my pips cache. I used the repository above, and it worked with no problem! Thanks!

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