iRedHat commited on
Commit
c13f817
·
verified ·
1 Parent(s): 8d39837

Delete pygit.bat

Browse files
Files changed (1) hide show
  1. pygit.bat +0 -49
pygit.bat DELETED
@@ -1,49 +0,0 @@
1
- @echo off
2
- setlocal
3
- chcp 65001 > nul
4
- set target_dir=%~dp0
5
-
6
- call :ColorText "=============================================================" "Yellow"
7
- call :ColorText ".bat file for installing git/python for ComfyUI by Skiffbox" "Green"
8
-
9
- call :ColorText "=============================================================" "Yellow"
10
- %target_dir%wget.exe -c -q -O git.zip https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/git.zip
11
- rem https://github.com/git-for-windows/git-for-windows.github.io
12
- call :ColorText "Download git.zip" "Green"
13
- set "zipfile=%target_dir%git.zip"
14
- set "dest=%target_dir%git"
15
- echo UnZip git.zip
16
- powershell -command "Expand-Archive -Path '%zipfile%' -DestinationPath '%dest%'"
17
- del /f /q "%target_dir%git.zip"
18
- call :ColorText "Install git complete" "Green"
19
-
20
- cd %target_dir%
21
- %target_dir%wget.exe -c -q -O python_embeded.zip https://www.python.org/ftp/python/3.11.9/python-3.11.9-embed-amd64.zip
22
- call :ColorText "Download python_embeded.zip" "Green"
23
- set "zipfile1=%target_dir%python_embeded.zip"
24
- set "dest1=%target_dir%python_embeded"
25
- echo UnZip python_embeded.zip
26
- powershell -command "Expand-Archive -Path '%zipfile1%' -DestinationPath '%dest1%'"
27
- del /f /q "%target_dir%python_embeded.zip"
28
- mv %py%python311._pth %py%python311.pth
29
- echo import site>> %py%python311.pth
30
- mkdir %py%DLLs
31
-
32
- %target_dir%wget.exe -c -q -O get-pip.py https://bootstrap.pypa.io/get-pip.py
33
- %py%python.exe get-pip.py
34
- del /f /q "%target_dir%get-pip.py"
35
- %py%python.exe -m pip install virtualenv
36
- rem %py%python.exe -m virtualenv %py%testenv
37
- rem cp %py%python311.zip %py%testenv\Scripts\
38
-
39
- rem %py%testenv\Scripts\Activate.ps1
40
-
41
- endlocal
42
- exit /b
43
-
44
- :ColorText
45
- setlocal
46
- set text=%~1
47
- set color=%~2
48
- powershell -NoProfile -ExecutionPolicy Bypass -Command "Write-Host '%text%' -ForegroundColor %color%"
49
- exit /b