Skip to content

Commit

Permalink
OpenColorIO : Fix location of PyOpenColorIO module
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhaddon committed Mar 8, 2022
1 parent 5efe987 commit 46ae113
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions OpenColorIO/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@
"cd build && make clean && make VERBOSE=1 -j {jobs} && make install",

"mkdir -p {buildDir}/python",
"{libCopyCommands}",
"mv {buildDir}/lib*/python*/site-packages/PyOpenColorIO* {buildDir}/python",

"{libCopyCommand}",

"mkdir -p {buildDir}/openColorIO",
"cp ../OpenColorIO-Configs-1.0_r2/nuke-default/config.ocio {buildDir}/openColorIO",
Expand All @@ -63,13 +65,12 @@

"variables" : {

"libCopyCommands" :
"libCopyCommand" :
# OpenColorIO's CMake setup uses GNUInstallDirs, which unhelpfully
# puts the libraries in `lib64`. Move them back. We'd like to do this
# in the build itself by passing `-D CMAKE_INSTALL_LIBDIR={buildDir}/lib`
# but that breaks OpenColorIO's internal libexpat setup.
"mv {buildDir}/lib*/libOpenColorIO* {buildDir}/lib;"
"mv {buildDir}/lib*/python*/site-packages/PyOpenColorIO* {buildDir}/python",
"mv {buildDir}/lib*/libOpenColorIO* {buildDir}/lib"

}

Expand All @@ -79,7 +80,7 @@

"variables" : {

"libCopyCommands" : "",
"libCopyCommand" : "",

}

Expand Down

0 comments on commit 46ae113

Please sign in to comment.