-
Notifications
You must be signed in to change notification settings - Fork 0
/
make.bat
47 lines (40 loc) · 1011 Bytes
/
make.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
@ECHO OFF
set VENV=.venv
set PYTHON=%VENV%\Scripts\python
if "%1" == "" goto help
if "%1" == "help" (
:help
echo.Please use `make ^<target^>` where ^<target^> is one of
echo. install-user install via pipx for current user
echo. uninstall-user uninstall via pipx for current user
echo. install-uv install uv via pipx for current user
goto end
)
if "%1" == "install-user" (
echo. python -m venv %VENV%
python -m venv %VENV%
%PYTHON% -m ensurepip
%PYTHON% -m pip install pipx
%PYTHON% -m pipx install --force .
%PYTHON% -m pipx ensurepath
goto end
)
if "%1" == "uninstall-user" (
echo. py -m venv %VENV%
py -m venv %VENV%
%PYTHON% -m ensurepip
%PYTHON% -m pip install pipx
%PYTHON% -m pipx uninstall lufah
goto end
)
if "%1" == "install-uv" (
echo. python -m venv %VENV%
python -m venv %VENV%
%PYTHON% -m ensurepip
%PYTHON% -m pip install pipx
%PYTHON% -m pipx install uv
%PYTHON% -m pipx ensurepath
echo. You may need to open a new terminal to use uv
goto end
)
:end