-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
87b350a
commit 3b60ddd
Showing
24 changed files
with
529 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
name = "alembic" | ||
version = "1.8.3" | ||
|
||
requires = ["imath"] | ||
build_requires = ["cmake"] | ||
|
||
variants = [["platform-windows", "arch-AMD64", "vs"]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name = "alembic" | ||
version = "1.8.3" | ||
|
||
requires = ["imath"] | ||
build_requires = ["cmake", "vs"] | ||
|
||
|
||
@early() | ||
def variants(): | ||
import os, ast | ||
|
||
variant = ast.literal_eval(os.getenv("REZ_COOK_VARIANT")) | ||
return [variant] | ||
|
||
|
||
def commands(): | ||
env.ALEMBIC_ROOT = "{root}" | ||
env.ALEMBIC_DIR = "{root}" | ||
env.CMAKE_PREFIX_PATH.prepend("{root}") | ||
env.PATH.prepend("{root}/bin") | ||
|
||
|
||
config_args = [ | ||
"cmake", | ||
"{root}", | ||
"-DCMAKE_INSTALL_PREFIX={install_path}", | ||
"-DCMAKE_MODULE_PATH=$env:CMAKE_MODULE_PATH", | ||
"-DCMAKE_BUILD_TYPE=Release", | ||
"-DUSE_TESTS=OFF", | ||
"-DUSE_PYALEMBIC=OFF", | ||
" -G Ninja", | ||
] | ||
|
||
build_command = ( | ||
" ".join(config_args) + " && cmake --build . --target install --config Release" | ||
) | ||
|
||
|
||
def pre_cook(): | ||
download_and_unpack( | ||
f"https://github.com/alembic/alembic/archive/refs/tags/{version}.zip" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
name = "blosc" | ||
version = "1.21.1" | ||
|
||
build_requires = ["cmake", "vs"] | ||
|
||
variants = [["platform-windows", "arch-AMD64", "vs"]] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name = "blosc" | ||
version = "1.21.1" | ||
|
||
build_requires = ["cmake", "vs"] | ||
|
||
@early() | ||
def variants(): | ||
import os, ast | ||
variant = ast.literal_eval(os.getenv("REZ_COOK_VARIANT")) | ||
return [variant] | ||
|
||
|
||
def commands(): | ||
env.BLOSC_ROOT = "{root}" | ||
env.CMAKE_PREFIX_PATH.prepend("{root}") | ||
env.PATH.prepend("{root}/bin") | ||
|
||
def pre_cook(): | ||
download_and_unpack("https://github.com/Blosc/c-blosc/archive/refs/tags/v1.21.1.zip") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
name = "cuda" | ||
version = "11.7.0" | ||
|
||
build_requires = [] | ||
|
||
variants = [["platform-windows", "arch-AMD64"]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name = "cuda" | ||
version = "11.7.0" | ||
|
||
|
||
@early() | ||
def variants(): | ||
import os, ast | ||
variant = ast.literal_eval(os.getenv("REZ_COOK_VARIANT")) | ||
return [variant] | ||
|
||
|
||
def commands(): | ||
env.PATH.prepend("{root}/bin") | ||
env.CUDA_PATH = "{root}" | ||
env.CUDA_DIR = "{root}" | ||
env.CUDA_TOOLKIT_PATH = "{root}" | ||
env.CUDA_TOOLKIT_DIR = "{root}" | ||
env.CUDA_TOOLKIT_ROOT = "{root}" | ||
|
||
|
||
build_command = """ | ||
echo 'Nothing to do' | ||
""" | ||
|
||
def pre_cook(): | ||
import os | ||
|
||
fn = download(f"https://developer.download.nvidia.com/compute/cuda/11.7.0/local_installers/cuda_11.7.0_516.01_windows.exe") | ||
print("") | ||
print("") | ||
print("================================================================================") | ||
print("={:^78s}=".format("WARNING")) | ||
print("= =") | ||
print("= Cannot automatically install CUDA on Windows, please use the downloaded =") | ||
print("= installer located at: =") | ||
print(f"={os.path.join(os.getcwd(), fn):^78s}=") | ||
print("= to install manually to the following path: =") | ||
print(f"={install_path:^78s}=") | ||
print("= =") | ||
print("================================================================================") | ||
print("") | ||
print("") | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
name = "ffmpeg" | ||
version = "5.0.1" | ||
|
||
variants = [["platform-windows", "arch-AMD64"]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name = "ffmpeg" | ||
version = "5.0.1" | ||
|
||
@early() | ||
def variants(): | ||
import os, ast | ||
variant = ast.literal_eval(os.getenv("REZ_COOK_VARIANT")) | ||
return [variant] | ||
|
||
|
||
def commands(): | ||
env.FFMPEG_ROOT = "{root}" | ||
env.TBB_ROOT_DIR = "{root}" | ||
env.CMAKE_PREFIX_PATH.prepend("{root}") | ||
env.PATH.prepend("{root}/bin") | ||
|
||
|
||
build_command = """ | ||
Move-Item -Path {root}/ffmpeg-n5.0.1-7-g7389a49fd3-win64-lgpl-shared-5.0/* -Destination {install_path} | ||
""" | ||
|
||
|
||
def pre_cook(): | ||
download_and_unpack(f"https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2022-06-29-12-34/ffmpeg-n5.0.1-7-g7389a49fd3-win64-lgpl-shared-5.0.zip", move_up=False) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name = "numpy" | ||
version = "1.21.6" | ||
|
||
requires = ["python"] | ||
|
||
variants = [ | ||
["platform", "arch", "python"], | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name = "numpy" | ||
version = "1.21.6" | ||
|
||
requires = ["python"] | ||
|
||
@early() | ||
def variants(): | ||
import os, ast | ||
variant = ast.literal_eval(os.getenv("REZ_COOK_VARIANT")) | ||
print(f"VARIANT: {variant}") | ||
|
||
return [variant] | ||
|
||
build_command = f""" | ||
rez-env python-$env:REZ_BUILD_PYTHON_VERSION -- python -m pip install {name}=={version} --target="{{install_path}}" --no-deps --use-pep517 | ||
""" | ||
|
||
def commands(): | ||
env.PYTHONPATH.prepend("{root}") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
name = "ocio" | ||
version = "2.1.2" | ||
|
||
requires = ["imath-3.1.2+<4", "python-3.7+<4"] | ||
build_requires = ["pybind11-2.6.1+"] | ||
|
||
variants = [["platform-linux", "arch-x86_64"], ["platform-windows", "arch-AMD64", "vs", "python"]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name = "ocio" | ||
version = "2.1.2" | ||
|
||
requires = ["imath-3.1.2+<4", "python-3.7+<4"] | ||
build_requires = ["cmake-3.15+<4", "pybind11-2.6.1+"] | ||
|
||
variants = [["platform-linux", "arch-x86_64"]] | ||
|
||
|
||
def commands(): | ||
env.PATH.prepend("{root}/bin") | ||
env.CMAKE_PREFIX_PATH.prepend("{root}/bin") | ||
env.PYTHNONPATH.prepend("{root}/lib/site-packages") | ||
env.PKG_CONFIG_PATH.prepend("{root}/bin") | ||
|
||
if building: | ||
env.LDFLAGS.prepend("-L{root}/lib -Wl,-rpath,{root}/lib") | ||
|
||
def pre_build_commands(): | ||
env.LDFLAGS.prepend("-Wl,-rpath,$REZ_BUILD_INSTALL_PATH/lib") | ||
|
||
|
||
def pre_cook(): | ||
import subprocess as sp | ||
sp.run(["wget", f"https://github.com/AcademySoftwareFoundation/OpenColorIO/archive/refs/tags/v{version}.tar.gz"]) | ||
sp.run(["tar", "xf", f"v{version}.tar.gz", "--strip", "1"]) |
53 changes: 53 additions & 0 deletions
53
ocio/2.1.2/platform-windows/arch-AMD64/vs/python/package.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name = "ocio" | ||
version = "2.1.2" | ||
|
||
requires = ["imath-3.1.2+<4", "python-3.7+<4"] | ||
build_requires = ["vs", "cmake-3.15+<4", "pybind11-2.6.1+"] | ||
|
||
@early() | ||
def variants(): | ||
import os, ast | ||
variant = ast.literal_eval(os.getenv("REZ_COOK_VARIANT")) | ||
return [variant] | ||
|
||
|
||
|
||
def commands(): | ||
env.PATH.prepend("{root}/bin") | ||
env.CMAKE_PREFIX_PATH.append("{root}/bin") | ||
env.PYTHNONPATH.prepend("{root}/lib/site-packages") | ||
|
||
|
||
build_system_args = [ | ||
"-DPython_ROOT=$env:Python_ROOT", | ||
"-DPython_EXECUTABLE=$env:Python_EXECUTABLE", | ||
"-DOCIO_BUILD_TESTS=OFF", | ||
"-DOCIO_BUILD_GPU_TESTS=OFF", | ||
] | ||
|
||
def pre_cook(): | ||
import os, shutil | ||
|
||
def download_file(url, local_dir): | ||
import urllib.request, shutil, os | ||
|
||
print(f"Downloading {url}...") | ||
filename = os.path.join(local_dir, os.path.basename(url)) | ||
with urllib.request.urlopen(url) as resp, open(filename, "wb") as f: | ||
shutil.copyfileobj(resp, f) | ||
return filename | ||
|
||
fn = download_file( | ||
f"https://github.com/AcademySoftwareFoundation/OpenColorIO/archive/refs/tags/v2.1.2.tar.gz", | ||
os.getcwd(), | ||
) | ||
shutil.unpack_archive(fn) | ||
|
||
archive_dir = "OpenColorIO-2.1.2" | ||
tmp_archive_dir = f"_tmp_rez_cook_{archive_dir}" | ||
shutil.move(archive_dir, tmp_archive_dir) | ||
for file in os.listdir(tmp_archive_dir): | ||
shutil.move(os.path.join(tmp_archive_dir, file), file) | ||
|
||
shutil.rmtree(tmp_archive_dir) | ||
os.remove(fn) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name = "oiio" | ||
version = "2.3.16.0" | ||
|
||
requires = [ | ||
"boost-1.70", | ||
"openexr-3.0+<3.2", | ||
"ocio-2.0+<2.2", | ||
"tiff-4.3", | ||
"openjpeg-2.4", | ||
"jpegturbo-2.0", | ||
"png-1.6", | ||
"raw-0.20+<0.22", | ||
"pybind11-2.8", | ||
"webp-1.1", | ||
"zlib-1.2", | ||
"ptex-2.4", | ||
"gif-5.2.1", | ||
] | ||
|
||
build_requires = ["cmake"] | ||
|
||
variants = [["platform-linux", "arch-x86_64"], ["platform-windows", "arch-AMD64", "vs", "python"]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name = "oiio" | ||
version = "2.3.16.0" | ||
|
||
requires = [ | ||
"boost-1.70", | ||
"openexr-3.0+<3.2", | ||
"ocio-2.0+<2.2", | ||
"tiff-4.3", | ||
"openjpeg-2.4", | ||
"jpegturbo-2.0", | ||
"png-1.6", | ||
"raw-0.20", | ||
"pybind11-2.8", | ||
"webp-1.1", | ||
"zlib-1.2", | ||
"ptex-2.4", | ||
"gif-5.2.1", | ||
] | ||
|
||
build_requires = ["cmake"] | ||
|
||
variants = [["platform-linux", "arch-x86_64"]] | ||
|
||
|
||
def commands(): | ||
env.OpenImageIO_ROOT = "{root}" | ||
env.OPENIMAGEIO_HOME = "{root}" | ||
env.OPENIMAGEIO_DIR = "{root}" | ||
env.OPENIMAGEIO_LOCATION = "{root}" | ||
env.CMAKE_PREFIX_PATH.append("{root}") | ||
env.PATH.append("{root}/bin") | ||
|
||
if building: | ||
env.LDFLAGS.prepend("-L{root}/lib -Wl,-rpath,{root}/lib") | ||
|
||
|
||
def pre_build_commands(): | ||
env.LDFLAGS.prepend("-Wl,-rpath,$REZ_BUILD_INSTALL_PATH/lib") | ||
|
||
|
||
build_system = "cmake" | ||
child_build_args = ["-DBUILD_DOCS=OFF", "-DOIIO_BUILD_TESTS=OFF"] | ||
|
||
|
||
def pre_cook(): | ||
import subprocess as sp | ||
|
||
archive = f"v{version}.tar.gz" | ||
sp.run(["wget", f"https://github.com/OpenImageIO/oiio/archive/refs/tags/{archive}"]) | ||
sp.run(["tar", "xf", archive, "--strip", "1"]) |
Oops, something went wrong.