-
-
Notifications
You must be signed in to change notification settings - Fork 949
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
Ethan Rublee
committed
Sep 30, 2018
1 parent
8ac01b5
commit e800c36
Showing
5 changed files
with
71 additions
and
45 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -9,3 +9,4 @@ torchgeometry.egg-info/ | |
.eggs/* | ||
.cache/* | ||
.pytest_cache/* | ||
.dev_env |
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 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# The purpose of this script is simplify running scripts inside of our | ||
# dev_env docker container. It mounts the workspace and the | ||
# workspace/../build directory inside of the container, and executes | ||
# any arguments passed to the dev_env.sh | ||
script_link="$( readlink "$BASH_SOURCE" )" || script_link="$BASH_SOURCE" | ||
apparent_sdk_dir="${script_link%/*}" | ||
if [ "$apparent_sdk_dir" == "$script_link" ]; then | ||
apparent_sdk_dir=. | ||
fi | ||
sdk_dir="$( command cd -P "$apparent_sdk_dir" > /dev/null && pwd -P )" | ||
if [ ! -e $sdk_dir/.dev_env/bin/conda ]; then | ||
$sdk_dir/setup_dev_env.sh | ||
fi | ||
source $sdk_dir/.dev_env/bin/activate $sdk_dir/.dev_env | ||
export PYTHONPATH=$PYTHONPATH:$sdk_root |
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,29 @@ | ||
#!/bin/bash -ex | ||
script_link="$( readlink "$BASH_SOURCE" )" || script_link="$BASH_SOURCE" | ||
apparent_sdk_dir="${script_link%/*}" | ||
if [ "$apparent_sdk_dir" == "$script_link" ]; then | ||
apparent_sdk_dir=. | ||
fi | ||
sdk_dir="$( command cd -P "$apparent_sdk_dir" > /dev/null && pwd -P )" | ||
|
||
mkdir -p $sdk_dir/.dev_env | ||
|
||
if [ ! -e $sdk_dir/.dev_env/miniconda.sh ]; then | ||
curl -o $sdk_dir/.dev_env/miniconda.sh \ | ||
-O https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh | ||
chmod +x $sdk_dir/.dev_env/miniconda.sh | ||
fi | ||
if [ ! -e $sdk_dir/.dev_env/bin/conda ]; then | ||
$sdk_dir/.dev_env/miniconda.sh -b -u -p $sdk_dir/.dev_env | ||
fi | ||
|
||
$sdk_dir/.dev_env/bin/conda install -y \ | ||
ipython \ | ||
numpy \ | ||
pytorch \ | ||
torchvision \ | ||
opencv \ | ||
-c pytorch | ||
|
||
$sdk_dir/.dev_env/bin/conda clean -ya | ||
|