kopia lustrzana https://github.com/OpenDroneMap/ODM
mod: Add post installation fix of OpenCV pathes instead of hot fixing at each run
rodzic
91201d5842
commit
749f90bc37
|
@ -69,6 +69,7 @@ Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{
|
||||||
|
|
||||||
[Run]
|
[Run]
|
||||||
Filename: "{tmp}\vc_redist.x64.exe"; StatusMsg: "Installing Visual C++ Redistributable Packages for Visual Studio 2019"; Parameters: "/quiet"; Check: VC2019RedistNeedsInstall ; Flags: waituntilterminated
|
Filename: "{tmp}\vc_redist.x64.exe"; StatusMsg: "Installing Visual C++ Redistributable Packages for Visual Studio 2019"; Parameters: "/quiet"; Check: VC2019RedistNeedsInstall ; Flags: waituntilterminated
|
||||||
|
Filename: "{app}\patchOpenCV.bat"; StatusMsg: "Patching OpenCV"; Parameters: "/quiet"; Flags: waituntilterminated
|
||||||
Filename: "{app}\console.bat"; Description: {cm:LaunchProgram,ODM Console}; Flags: nowait postinstall skipifsilent
|
Filename: "{app}\console.bat"; Description: {cm:LaunchProgram,ODM Console}; Flags: nowait postinstall skipifsilent
|
||||||
|
|
||||||
[Code]
|
[Code]
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
set ODMBASE=%~dp0
|
||||||
|
set VIRTUAL_ENV=%ODMBASE%venv
|
||||||
|
set PYENVCFG=%VIRTUAL_ENV%\pyvenv.cfg
|
||||||
|
|
||||||
|
rem Hot-patching pyvenv.cfg
|
||||||
|
echo home = %ODMBASE%venv\Scripts> "%PYENVCFG%"
|
||||||
|
echo include-system-site-packages = false>> "%PYENVCFG%"
|
||||||
|
|
||||||
|
rem Hot-patching cv2 extension configs
|
||||||
|
echo BINARIES_PATHS = [r"%SBBIN%"] + BINARIES_PATHS> venv\Lib\site-packages\cv2\config.py
|
||||||
|
echo PYTHON_EXTENSIONS_PATHS = [r'''%VIRTUAL_ENV%\lib\site-packages\cv2\python-3.8'''] + PYTHON_EXTENSIONS_PATHS> venv\Lib\site-packages\cv2\config-3.8.py
|
||||||
|
|
||||||
|
cls
|
Ładowanie…
Reference in New Issue