-
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
20 additions
and
14 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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 |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
script_dir=$(dirname "$0") | ||
venv_dir=${script_dir}/../venv | ||
pip_reqs_dir=${script_dir}/../pip_reqs | ||
py_ver="3.11" |
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 @@ | ||
@echo off | ||
call common.cmd | ||
|
||
CALL %venv_dir%\Scripts\pip freeze > %pip_reqs_dir%\pip_reqs.txt | ||
CALL %venv_dir%\Scripts\python -m 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,7 @@ | ||
#!/bin/bash | ||
|
||
source common.sh | ||
script_dir=$(dirname "$0") | ||
source ${script_dir}/common.sh | ||
|
||
# persist the exact dependencies (recursively) | ||
${venv_dir}/bin/pip freeze > ${pip_reqs_dir}/pip_reqs.txt | ||
${venv_dir}/bin/python -m 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
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,17 +1,18 @@ | ||
#!/bin/bash | ||
|
||
source common.sh | ||
script_dir=$(dirname "$0") | ||
source ${script_dir}/common.sh | ||
|
||
${venv_dir}/bin/python -m pip install --upgrade pip | ||
${venv_dir}/bin/pip install --upgrade setuptools | ||
${venv_dir}/bin/python -m pip install --upgrade setuptools | ||
|
||
|
||
|
||
# 1) install latest (versions of) dependencies | ||
${venv_dir}/bin/pip install -r ${pip_reqs_dir}/pip_reqs_base.txt | ||
${venv_dir}/bin/python -m pip install -r ${pip_reqs_dir}/pip_reqs_base.txt | ||
|
||
# 2) install exact (versions of) dependencies | ||
#./venv/bin/pip install -r ../pip_reqs.txt | ||
#./venv/bin/python -m pip install -r ../pip_reqs.txt | ||
|
||
# eg from previous call to 'pip_reqs_export.sh' | ||
# recommended for production |
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