How to install pyroot on a particular python venv?

so we have compiled root with -DPYTHON_EXECUTABLE=/path/to/python_exec ( python 3.10 )

and need to use it inside a particular venv. Is there a way to copy the python root build to a particular virtual environment ? Thanks

I think @etejedor can help you.

thanks. The thing is, I am automating this build and I would like to know if I need to destroy the virtual environment ( which we do sometimes ) I can just copy pyroot over again in the newly created virtual environment to start fresh

You can build and keep ROOT outside of the “venv”.
Afterwards, “source venv/bin/activate” and then “source root/bin/thisroot.sh” (it will add its ROOT python-related settings to relevant environment variables).
Just remember that the python version in the “venv” must be one of these that ROOT was built for.

sounds great ! Going to try to automate that as well. Thank you for your answers

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.