OpenImageIO 3.2.1.3__cp315-cp315-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- OpenImageIO/OpenImageIO.cp315-win_amd64.pyd +0 -0
- OpenImageIO/__init__.py +50 -0
- OpenImageIO/__init__.pyi +1650 -0
- OpenImageIO/bin/GIF.dll +0 -0
- OpenImageIO/bin/Iex_v_3_5_0_OpenImageIO_v3_2.dll +0 -0
- OpenImageIO/bin/IlmThread_v_3_5_0_OpenImageIO_v3_2.dll +0 -0
- OpenImageIO/bin/Imath_v_3_2_3_OpenImageIO_v3_2.dll +0 -0
- OpenImageIO/bin/OpenEXRCore_v_3_5_0_OpenImageIO_v3_2.dll +0 -0
- OpenImageIO/bin/OpenEXRUtil_v_3_5_0_OpenImageIO_v3_2.dll +0 -0
- OpenImageIO/bin/OpenEXR_v_3_5_0_OpenImageIO_v3_2.dll +0 -0
- OpenImageIO/bin/OpenImageIO.dll +0 -0
- OpenImageIO/bin/OpenImageIO_Util.dll +0 -0
- OpenImageIO/bin/brotlicommon.dll +0 -0
- OpenImageIO/bin/brotlidec.dll +0 -0
- OpenImageIO/bin/brotlienc.dll +0 -0
- OpenImageIO/bin/freetype.dll +0 -0
- OpenImageIO/bin/idiff.exe +0 -0
- OpenImageIO/bin/jxl.dll +0 -0
- OpenImageIO/bin/jxl_cms.dll +0 -0
- OpenImageIO/bin/jxl_threads.dll +0 -0
- OpenImageIO/bin/maketx.exe +0 -0
- OpenImageIO/bin/oiiotool.exe +0 -0
- OpenImageIO/bin/openjp2.dll +0 -0
- OpenImageIO/bin/openjph.0.32.dll +0 -0
- OpenImageIO/bin/tiff.dll +0 -0
- OpenImageIO/bin/zlib1.dll +0 -0
- OpenImageIO/lib/GIF.lib +0 -0
- OpenImageIO/lib/Iex_v_3_5_0_OpenImageIO_v3_2.lib +0 -0
- OpenImageIO/lib/IlmThread_v_3_5_0_OpenImageIO_v3_2.lib +0 -0
- OpenImageIO/lib/Imath_v_3_2_3_OpenImageIO_v3_2.lib +0 -0
- OpenImageIO/lib/OpenEXRCore_v_3_5_0_OpenImageIO_v3_2.lib +0 -0
- OpenImageIO/lib/OpenEXRUtil_v_3_5_0_OpenImageIO_v3_2.lib +0 -0
- OpenImageIO/lib/OpenEXR_v_3_5_0_OpenImageIO_v3_2.lib +0 -0
- OpenImageIO/lib/brotlicommon.lib +0 -0
- OpenImageIO/lib/brotlidec.lib +0 -0
- OpenImageIO/lib/brotlienc.lib +0 -0
- OpenImageIO/lib/freetype.lib +0 -0
- OpenImageIO/lib/jxl.lib +0 -0
- OpenImageIO/lib/jxl_cms.lib +0 -0
- OpenImageIO/lib/jxl_threads.lib +0 -0
- OpenImageIO/lib/openjp2.lib +0 -0
- OpenImageIO/lib/openjph.0.32.lib +0 -0
- OpenImageIO/lib/tiff.lib +0 -0
- OpenImageIO/lib/tiffxx.lib +0 -0
- OpenImageIO/lib/zlib.lib +0 -0
- OpenImageIO/lib/zlibstatic.lib +0 -0
- OpenImageIO/py.typed +0 -0
- OpenImageIO/share/fonts/OpenImageIO/DroidSans-Bold.ttf +0 -0
- OpenImageIO/share/fonts/OpenImageIO/DroidSans.ttf +0 -0
- OpenImageIO/share/fonts/OpenImageIO/DroidSansMono.ttf +0 -0
- OpenImageIO/share/fonts/OpenImageIO/DroidSerif-Bold.ttf +0 -0
- OpenImageIO/share/fonts/OpenImageIO/DroidSerif-BoldItalic.ttf +0 -0
- OpenImageIO/share/fonts/OpenImageIO/DroidSerif-Italic.ttf +0 -0
- OpenImageIO/share/fonts/OpenImageIO/DroidSerif.ttf +0 -0
- openimageio-3.2.1.3.dist-info/METADATA +209 -0
- openimageio-3.2.1.3.dist-info/RECORD +60 -0
- openimageio-3.2.1.3.dist-info/WHEEL +5 -0
- openimageio-3.2.1.3.dist-info/entry_points.txt +5 -0
- openimageio-3.2.1.3.dist-info/licenses/LICENSE.md +201 -0
- openimageio-3.2.1.3.dist-info/licenses/THIRD-PARTY.md +310 -0
|
Binary file
|
OpenImageIO/__init__.py
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Copyright Contributors to the OpenImageIO project.
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
# https://github.com/AcademySoftwareFoundation/OpenImageIO
|
|
4
|
+
|
|
5
|
+
import os
|
|
6
|
+
import sys
|
|
7
|
+
import platform
|
|
8
|
+
import subprocess
|
|
9
|
+
|
|
10
|
+
_here = os.path.abspath(os.path.dirname(__file__))
|
|
11
|
+
|
|
12
|
+
# Set $OpenImageIO_ROOT if not already set *before* importing the OpenImageIO module.
|
|
13
|
+
if not os.getenv("OpenImageIO_ROOT"):
|
|
14
|
+
if all([os.path.exists(os.path.join(_here, i)) for i in ["share", "bin", "lib"]]):
|
|
15
|
+
os.environ["OpenImageIO_ROOT"] = _here
|
|
16
|
+
|
|
17
|
+
if platform.system() == "Windows":
|
|
18
|
+
# Python wheel module is dynamically linked to the OIIO DLL present in the bin folder.
|
|
19
|
+
_bin_dir = os.path.join(_here, "bin")
|
|
20
|
+
if os.path.exists(_bin_dir):
|
|
21
|
+
os.add_dll_directory(_bin_dir)
|
|
22
|
+
elif sys.version_info >= (3, 8):
|
|
23
|
+
# This works around the python 3.8 change to stop loading DLLs from PATH on Windows.
|
|
24
|
+
# We reproduce the old behavior by manually tokenizing PATH, checking that the
|
|
25
|
+
# directories exist and are not ".", then add them to the DLL load path.
|
|
26
|
+
# This behavior is disabled by default, but can be enabled by setting the environment
|
|
27
|
+
# variable "OPENIMAGEIO_PYTHON_LOAD_DLLS_FROM_PATH" to "1"
|
|
28
|
+
if os.getenv("OPENIMAGEIO_PYTHON_LOAD_DLLS_FROM_PATH", "0") == "1":
|
|
29
|
+
for path in os.getenv("PATH", "").split(os.pathsep):
|
|
30
|
+
if os.path.exists(path) and path != ".":
|
|
31
|
+
os.add_dll_directory(path)
|
|
32
|
+
|
|
33
|
+
from .OpenImageIO import * # type: ignore # noqa: F401, F403, E402
|
|
34
|
+
|
|
35
|
+
__doc__ = """
|
|
36
|
+
OpenImageIO is a toolset for reading, writing, and manipulating image files of
|
|
37
|
+
any image file format relevant to VFX / animation via a format-agnostic API
|
|
38
|
+
with a feature set, scalability, and robustness needed for feature film
|
|
39
|
+
production.
|
|
40
|
+
"""[1:-1]
|
|
41
|
+
|
|
42
|
+
__version__ = VERSION_STRING # type: ignore # noqa: F405
|
|
43
|
+
|
|
44
|
+
def _call_program(name, args):
|
|
45
|
+
bin_dir = os.path.join(os.path.dirname(__file__), 'bin')
|
|
46
|
+
return subprocess.call([os.path.join(bin_dir, name)] + args)
|
|
47
|
+
|
|
48
|
+
def _command_line():
|
|
49
|
+
name = os.path.basename(sys.argv[0])
|
|
50
|
+
raise SystemExit(_call_program(name, sys.argv[1:]))
|