-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
9 changed files
with
131 additions
and
81 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,4 +1,4 @@ | ||
SET "script_dir=%~dp0" | ||
SET "script_dir=%script_dir:~0,-1%" | ||
@echo off | ||
call common.cmd | ||
|
||
CALL %script_dir%\venv\Scripts\pip freeze > ..\pip_reqs.txt | ||
CALL %venv_dir%\Scripts\pip freeze > %pip_reqs_dir%\pip_reqs.txt |
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,6 +1,6 @@ | ||
#!/bin/bash | ||
|
||
script_dir=$(dirname "$0") | ||
source common.sh | ||
|
||
# persist the exact dependencies (recursively) | ||
$script_dir/venv/bin/pip freeze > $script_dir/../pip_reqs.txt | ||
${venv_dir}/bin/pip freeze > ${pip_reqs_dir}/pip_reqs.txt |
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,21 +1,12 @@ | ||
SET "script_dir=%~dp0" | ||
SET "script_dir=%script_dir:~0,-1%" | ||
@echo off | ||
call common.cmd | ||
|
||
CALL %script_dir%\venv\Scripts\python -m pip install --upgrade pip | ||
CALl %script_dir%\venv\Scripts\pip install --upgrade setuptools | ||
CALL %venv_dir%\Scripts\python -m pip install --upgrade pip | ||
CALl %venv_dir%\Scripts\pip install --upgrade setuptools | ||
|
||
|
||
REM Latest | ||
REM ------ | ||
REM install (latest versions of) dependencies | ||
REM ------ | ||
CAll %script_dir%\venv\Scripts\pip install -r ..\pip_reqs_base.txt | ||
REM 1) install latest (versions of) dependencies | ||
CALL ${venv_dir}/bin/pip install -r ${pip_reqs_dir}/pip_reqs_base.txt | ||
|
||
REM Exact | ||
REM ------ | ||
REM alternatively, use this instead to install exact (recursive) dependencies previously 'frozen' by | ||
REM previous call to 'pip_reqs_export.sh' | ||
REM | ||
REM recommended for production | ||
REM ------ | ||
REM CAll .\venv\Scripts\pip install -r ..\pip_reqs.txt | ||
REM 2) install exact (versions of) dependencies | ||
REM CALL ${venv_dir}/bin/pip install -r ../pip_reqs.txt |
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,20 +1,17 @@ | ||
#!/bin/bash | ||
|
||
script_dir=$(dirname "$0") | ||
source common.sh | ||
|
||
$script_dir/venv/bin/python -m pip install --upgrade pip | ||
$script_dir/venv/bin/pip install --upgrade setuptools | ||
${venv_dir}/bin/python -m pip install --upgrade pip | ||
${venv_dir}/bin/pip install --upgrade setuptools | ||
|
||
|
||
# Latest | ||
# ------ | ||
# install (latest versions of) dependencies | ||
$script_dir/venv/bin/pip install -r $script_dir/../pip_reqs_base.txt | ||
|
||
# Exact | ||
# ------ | ||
# alternatively, use this instead to install exact (recursive) dependencies previously 'frozen' by | ||
# previous call to 'pip_reqs_export.sh' | ||
# | ||
# 1) install latest (versions of) dependencies | ||
${venv_dir}/bin/pip install -r ${pip_reqs_dir}/pip_reqs_base.txt | ||
|
||
# 2) install exact (versions of) dependencies | ||
#./venv/bin/pip install -r ../pip_reqs.txt | ||
|
||
# eg from previous call to 'pip_reqs_export.sh' | ||
# recommended for production | ||
#./venv/bin/pip install -r ../pip_reqs_base.txt |
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,23 +1,24 @@ | ||
REM set HTTPS_PROXY= http://10.110.15.6:8080 | ||
|
||
SET "script_dir=%~dp0" | ||
SET "script_dir=%script_dir:~0,-1%" | ||
@echo off | ||
call common.cmd | ||
|
||
|
||
CALL python -m venv %script_dir%\venv | ||
|
||
echo ".....virtual environment created" | ||
|
||
CALL %script_dir%\venv\Scripts\activate | ||
CALL %venv_dir%\Scripts\activate | ||
|
||
echo ".....pip reqs installing...." | ||
|
||
CALL %script_dir%\pip_reqs_install.cmd | ||
|
||
echo ".....pip reqs installed" | ||
|
||
CALL %script_dir%\\venv\Scripts\deactivate | ||
CALL %venv_dir%\Scripts\deactivate | ||
|
||
echo ".....venv ready" | ||
|
||
|
||
pause | ||
pause |
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