Blame view

install/install.bat 858 Bytes
4e3b6f1e   Alain Klotz   first commit
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
@echo off

call :ResolvePath path_astromecca %cd%
echo Astromecca in the directory %path_astromecca%

rem Search where is Anaconda
set path_anacondas=c:\Users\%USERNAME%\Anaconda3 C:\ProgramData\Anaconda3
for %%p in (%path_anacondas%) do ( 
   echo %%p
	if exist %%p (
		rem file exists
		set path_anaconda=%%p
	)
)
echo Anaconda found in the directory %path_anaconda%

rem pip
set pip=%path_anaconda%\Scripts\pip
echo ===== Pip with %pyreverse%
echo cd %path_astromecca%
cd %path_astromecca%
echo %pip% install -r requirements.txt
%pip% install -r requirements.txt
echo %pip% install -r requirements_win.txt
%pip% install -r requirements_win.txt
	
exit /b
rem === Functions ===

rem Resolve path to absolute.
rem Param 1: Name of output variable.
rem Param 2: Path to resolve.
rem Return: Resolved absolute path.
:ResolvePath
    set %1=%~dpfn2
    exit /b