FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
azure-devops-python-api/scripts/windows/init.cmd at master · microsoft/azure-devops-python-api · GitHub
microsoft
/
azure-devops-python-api
Public
Notifications
You must be signed in to change notification settings
Fork
218
Star
683
Code
Issues
143
Pull requests
13
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
azure-devops-python-api
/
scripts
/
windows
/
init.cmd
Copy path
More file actions
More file actions
Latest commit
History
History
History
56 lines (41 loc) · 1.45 KB
Breadcrumbs
azure-devops-python-api
/
scripts
/
windows
/
init.cmd
Copy path
File metadata and controls
56 lines (41 loc) · 1.45 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
50
51
52
53
54
55
56
@
REM
-------------------------------------------------
@
REM
init section. Set _echo=1 to echo everything....
@
IF
NOT
DEFINED _echo
ECHO
OFF
PUSHD
%~dp0
\..\..
SET
BUILDDIR
=
%CD%
REM
Set scripts directory
SET
SCRIPTSDIR
=
%BUILDDIR%
\scripts
REM
Add the scripts directory to the path
SET
PATH
=
%SCRIPTSDIR%
\windows;
%SCRIPTSDIR%
;
%PATH%
REM
set title
TITLE
Azure DevOps Python v5.x (in
%BUILDDIR%
)
REM
setup common aliases
REM
NOTE: macros in macros.txt work in *BOTH* cmd and powershell. Keep it that way.
REM
Only add macros to macros.cmd.txt when the same macro cannot be used in both cmd and Powershell.
REM
In that case, add equivalent macros to both macros.cmd.txt and macros.ps.txt, to ensure that
REM
the cmd and Powershell development environments remain functionally identical.
doskey
/MACROFILE=scripts\windows\macros.txt
doskey
/MACROFILE=scripts\windows\macros.cmd.txt
IF
EXIST
"
%BUILD_BINARIESDIRECTORY%
\python.3.6.2\tools\python.exe
"
(
REM
Build step installs Python here.
SET
PYTHONEXE
=
%BUILD_BINARIESDIRECTORY%
\python.3.6.2\tools\python.exe
)
ELSE
(
SET
PYTHONEXE
=
python.exe
)
SET
VDIR
=
%BUILDDIR%
\env
IF
NOT
EXIST
"
%VDIR%
"
(
echo
Creating new virtual environment under
%VDIR%
"
%PYTHONEXE%
"
-m venv
"
%VDIR%
"
IF
ERRORLEVEL
1
GOTO
FAIL
)
SET
PYTHONEXE
=
"
%VDIR%
\scripts\activate.bat
"
IF
ERRORLEVEL
1
GOTO
FAIL
SET
PYTHONPATH
=
%BUILDDIR%
;
%PYTHONPATH%
GOTO
:
EOF
:
PARSEPATH
SET
"
_PARSED_PATH
=
%~dp1
"
GOTO
:
EOF
:
FAIL
ECHO
init failed.
EXIT
/B
1
Back
|
FazBrowse Home
|
New Git URL