-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6ce2a28
commit 1197adb
Showing
3 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
scripts/win/freshvenv-windows.bat → scripts/freshvenv-windows.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
cd /d %~dp0 | ||
cd ../.. | ||
cd .. | ||
RD /S /Q .venv | ||
|
||
python -m venv .venv | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
@echo off | ||
setlocal | ||
|
||
:: Step 1: Check if Python is installed | ||
python --version >nul 2>&1 | ||
if %errorlevel% neq 0 ( | ||
echo Python is not installed. Please install Python and run this script again. | ||
exit /b 1 | ||
) | ||
|
||
cd /d %~dp0 | ||
|
||
:: Step 2: Download and unzip the GitHub repository | ||
echo Downloading and extracting the GitHub repository... | ||
curl -LJO https://github.com/rpakishore/ak_sap/archive/main.zip | ||
tar -xf ak_sap-main.zip | ||
del ak_sap-main.zip | ||
|
||
:: Step 3: Navigate into the ak_sap directory | ||
cd ak_sap-main | ||
|
||
:: Step 4: Set up virtual environment and install dependencies | ||
echo Setting up virtual environment and installing dependencies... | ||
python -m venv .venv | ||
call .venv\Scripts\activate | ||
python -m pip install --upgrade pip | ||
pip install flit && flit install --deps production | ||
|
||
:: Step 5: Display success message | ||
echo Installation completed successfully. | ||
|
||
:: End | ||
exit /b 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
@echo off | ||
|
||
cd /d %~dp0 | ||
cd ..\.. | ||
cd .. | ||
|
||
rem Check if Python is installed | ||
python --version > nul 2>&1 | ||
|