Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The core functionality relies on using **Processors** and **Operators** to compu
## Installation
LabLib requires `python-3.9` and uses `poetry` for managing its dependencies.

It's encouraged to use the provided PowerShell script to install and download the binaries for [oiiotool](https://www.patreon.com/posts/openimageio-oiio-63609827), [ffmpeg](https://github.com/GyanD/codexffmpeg/releases/tag/7.0.1), the [OCIO Color Configs](https://github.com/colour-science/OpenColorIO-Configs/releases/tag/v1.2) and the font [Source Code Pro](https://fontsource.org/fonts/source-code-pro) which is used in tests.
It's encouraged to use the provided PowerShell script to install and download the binaries for [ffmpeg](https://github.com/GyanD/codexffmpeg/releases/tag/7.0.1), the [OCIO Color Configs](https://github.com/colour-science/OpenColorIO-Configs/releases/tag/v1.2) and the font [Source Code Pro](https://fontsource.org/fonts/source-code-pro) which is used in tests.

- clone this repo
- `.\start.ps1 install`
Expand Down
9 changes: 0 additions & 9 deletions lablib/lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,6 @@ def get_vendored_env() -> dict[str, Any]:
env["OCIO"] = str(ocio_path)
log.debug(f"{env['OCIO'] = }")

if oiio_root := env.get("LABLIB_OIIO"):
log.debug(f"Using oiiotool from {oiio_root}")
else:
log.info("LABLIB_OIIO environment variable not set. Using default.")
oiio_root = Path(vendor_root, "oiio", "windows")

if ffmpeg_root := env.get("LABLIB_FFMPEG"):
log.debug(f"Using ffmpeg from {ffmpeg_root}")
else:
Expand All @@ -66,9 +60,6 @@ def get_vendored_env() -> dict[str, Any]:
)

paths = [Path(p) for p in env["PATH"].split(";")]
if oiio_root not in paths:
paths.insert(0, oiio_root)
log.debug(f"Insert into $PATH {oiio_root = }")
if ffmpeg_root not in paths:
log.debug(f"Insert into $PATH {ffmpeg_root = }")
paths.insert(0, ffmpeg_root)
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ python = ">=3.9.1,<3.10"
opentimelineio = "^0.16.0"
opencolorio = "<=2.3.2"
selenium = "4.16.0"
openimageio = "^3.1.9.0"

[tool.poetry.dev-dependencies]
pytest = "^6.2.0"
Expand Down
8 changes: 0 additions & 8 deletions start.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,6 @@ function get_dependencies {
New-Item -ItemType Directory -Path $vendor_root
}

# ensure OpenImageIO
if (-not (Test-Path "$vendor_root\oiio\windows\oiiotool.exe")) {
$oiio_url = "https://www.patreon.com/file?h=63609827&i=10247677"
$oiio_zip = "$vendor_root\oiiotools2.3.10.zip"
Invoke-WebRequest -Uri $oiio_url -OutFile $oiio_zip
Expand-Archive -Path $oiio_zip -DestinationPath "$vendor_root\oiio\windows"
}

# ensure OpenColorIO Config
if (-not (Test-Path "$vendor_root\ocioconfig")) {
$ocio_url = "https://github.com/colour-science/OpenColorIO-Configs/releases/download/v1.2/OpenColorIO-Config-ACES-1.2.zip"
Expand Down
Loading