mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 03:40:05 +00:00
Activate Python virtual environment on Windows during configuration
This commit is contained in:
parent
ac475999f5
commit
0e90f8a7a1
10 changed files with 95 additions and 8 deletions
|
|
@ -1,9 +1,18 @@
|
|||
@setlocal enabledelayedexpansion
|
||||
|
||||
@set script_dir=%~dp0
|
||||
@set venv_path=%script_dir%\..\.venv
|
||||
|
||||
:: Assign user-specified Python Virtual Environment
|
||||
@if not "%~1"=="" set venv_path=%~f1
|
||||
|
||||
:: Activate Python Virtual Environment
|
||||
python -m venv %venv_path%
|
||||
@call %venv_path%\Scripts\activate.bat
|
||||
|
||||
:: Install Python packages
|
||||
@pip install --upgrade -r "%script_dir%\..\requirements.txt"
|
||||
python -m pip install --upgrade pip
|
||||
pip install --upgrade -r "%script_dir%\..\requirements.txt"
|
||||
|
||||
:: Configure default Conan profile
|
||||
@conan profile detect -e
|
||||
|
|
@ -19,4 +28,7 @@
|
|||
conan config install "%script_dir%\conan\profiles\!profile_name!" -tf profiles
|
||||
)
|
||||
|
||||
:: Deactivate Python Virtual Environment
|
||||
@call %venv_path%\Scripts\deactivate.bat
|
||||
|
||||
@pause
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue