Hello,
Maybe https://github.com/microsoft/vcpkg/issues/13403 would help. It appears 
you may have to roll back to an older version of vcpkg in order to get Python 
3.7. That also means an older version of OIIO though.






    On Friday, November 4, 2022 at 07:05:48 PM CDT, Austin Witherspoon 
<austinwithersp...@barnstormvfx.com> wrote:  
 
 My apologies if this isn't the right place, but the main repo 
https://github.com/OpenImageIO/oiio seemed to indicate that help questions 
should be sent here.

We're just trying to install the python package for openimageio for our python 
3.7 scripts, but nobody here knows C++ or vcpkg at all. The best I've been able 
to get is Python 3.10 bindings, but I can't seem to find any information or 
reverse engineer this enough to figure out how to change the version. We don't 
even have Python 3.10 installed on our computers.

Downloaded vcpkg for windows and followed the instructions here:
https://github.com/Correct-Syntax/py-oiio
to build oiio.
Running this in command prompt builds it:
./vcpkg install openimageio[pybind11]:x64-windows
But again, this defaults to python 3.10 for some reason. I found a 
stackoverflow post suggesting that you could change the version with an 
environment variable like this:
PYBIND11_PYTHON_VERSION=3.7
but this unfortunately didn't seem to do anything.

Does anybody here know anything about changing the python version of the 
bindings? Any help at all is welcome, and thanks in advance.
_______________________________________________
Oiio-dev mailing list
Oiio-dev@lists.openimageio.org
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
  
_______________________________________________
Oiio-dev mailing list
Oiio-dev@lists.openimageio.org
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to