-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.bat
49 lines (38 loc) · 1.11 KB
/
build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
@echo off
rem Script to build the custom recipe
where python
if %errorlevel% neq 0 (
echo Python can't be found, please install it and make it available in the PATH before continuing
exit /B 1
) else (
echo Found Python
)
where cmake
if %errorlevel% neq 0 (
echo CMake can't be found, please install it and make it available in the PATH before continuing
exit /B 1
) else (
echo Found CMake
)
where conan
if %errorlevel% neq 0 (
echo conan not found, installing it
python -m venv env
call env/Scripts/activate
pip install conan==1.59
) else (
conan --version | findstr 1.59
if %errorlevel% neq 0 (
echo Conan version supported is 1.59.0, please install it or make a new virtual environment
exit /B 1
)
echo conan 1.59 found
)
cd openimageio2.4
conan create . openimageio/2.4@pythonbindings/1.0 -o with_ffmpeg=False -o *:shared=True --build missing
cd ..
conan install .
for /f "tokens=*" %%a in ('dir /ad /b /s ^| findstr site-packages\OpenImageIO') do set PYDIR=%%a
xcopy %PYDIR% bin /Y
set PYDIR=%PYDIR:site-packages\OpenImageIO=%
rmdir /s /q %PYDIR%