On 22/10/20 2:49 am, Deke Kincaid wrote: > This is about both efficiency and our dependency chain. Essentially > because of the upcoming python 3 move and more and more packages depending > on OIIO (Material X, USD, etc...). OCIO 1.x does not support python 3 but > OCIO 2.x does. If you try to compile both OIIO's python 2 & 3 bindings it
While I haven't done any testing, ocio 1.1 does build and import with py3.x, the docs however require py2 so that needs to be disabled. % python3.7 Python 3.7.6 (default, Feb 19 2020, 10:03:43) [Clang 9.0.1 ([email protected]:llvm/llvm-project.git c1a0a213378a458fbea1a5c77b31 on freebsd12 Type "help", "copyright", "credits" or "license" for more information. >>> import PyOpenColorIO as ocio >>> ocio.version '1.1.1' >>> ocio.Baker() <PyOpenColorIO.Baker object at 0x800bdbcf0> >>> ocio.Config() ocio_profile_version: 1 search_path: "" strictparsing: true luma: [0.2126, 0.7152, 0.0722] roles: {} displays: {} active_displays: [] active_views: [] colorspaces: [] > will fail because of OCIO 1.x's lack of python 3. I need to compile > cy2019/cy2020 libraries for both python 2 and 3 so we can write proper > tests to make sure our updated code works on both python versions. It will > be much easier to separate OIIO python bindings from the core library so > I'm I can lessen the dependency chain and how many times I have to > recompile the core OIIO library. Also in our dependency chain, any C > libraries don't have to needlessly depend on python anymore in this While I'm not sure of other systems, the FreeBSD packaging system allows python modules to be installed for more than one version simultaneously. This leads to multiple ports that each build more than needed but only install parts at a time. For the general user installing for one py flavour this isn't an issue, but when your test building a new release on all supported systems or a package build machine making all available options, it starts to add up. -- FreeBSD - the place to B...Software Developing Shane Ambler _______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
