-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathSTDATALOG-PYSDK_install_noGUI.bat
More file actions
30 lines (29 loc) · 1.49 KB
/
STDATALOG-PYSDK_install_noGUI.bat
File metadata and controls
30 lines (29 loc) · 1.49 KB
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
@ECHO OFF
:: This batch file is used to install all Python packages needed to use the HSDPython_SDK (without GUI features) and its examples
ECHO HSDPython_SDK(no GUI version) Installer
ECHO.
ECHO [NOTE]: If you are using a proxy launch this script passing your proxy string as a parameter.
ECHO -- e.g.: HSDPython_SDK_install.bat http://usr_name:password@proxyserver_name:port#
ECHO.
set proxy_string=%1
:: Section 1: stdatalog_pnpl
ECHO ===========================================
ECHO installing stdatalog_pnpl...
ECHO ===========================================
python -c "import pkg_resources; pkg_resources.require('stdatalog_pnpl')" 2>nul
if %errorlevel%==0 (
ECHO Version to be installed: 1.3.0
python -m pip uninstall stdatalog_pnpl -y
)
if "%proxy_string%"=="" (python -m pip install stdatalog_pnpl\dist\stdatalog_pnpl-1.3.0-py3-none-any.whl) else (python -m pip install stdatalog_pnpl\dist\stdatalog_pnpl-1.3.0-py3-none-any.whl --proxy %proxy_string%)
:: Section 2: stdatalog_core
ECHO ===========================================
ECHO installing stdatalog_core...
ECHO ===========================================
python -c "import pkg_resources; pkg_resources.require('stdatalog_core')" 2>nul
if %errorlevel%==0 (
ECHO Version to be installed: 1.3.0
python -m pip uninstall stdatalog_core -y
)
if "%proxy_string%"=="" (python -m pip install stdatalog_core\dist\stdatalog_core-1.3.0-py3-none-any.whl) else (python -m pip install stdatalog_core\dist\stdatalog_core-1.3.0-py3-none-any.whl --proxy %proxy_string%)
PAUSE