-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add install script for installing from source.
This commit adds an install script that installs all stactools subpackages from source. Installing stactools from github with all the subprojects isn't possible, so this allows other projects to clone this repo and run this script in order to obtain unpublished stactools changes.
- Loading branch information
Showing
2 changed files
with
34 additions
and
9 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
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 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
if [[ -n "${CI}" ]]; then | ||
set -x | ||
fi | ||
|
||
# Import shared variables | ||
source ./scripts/env | ||
|
||
function usage() { | ||
echo -n \ | ||
"Usage: $(basename "$0") | ||
Install all stactools packages. | ||
" | ||
} | ||
|
||
if [ "${BASH_SOURCE[0]}" = "${0}" ]; then | ||
if [ "${1:-}" = "--help" ]; then | ||
usage | ||
else | ||
for PACKAGE_DIR in "${STACTOOLS_SUBPACKAGE_DIRS[@]}" | ||
do | ||
pushd ./${PACKAGE_DIR} | ||
pip install -e . | ||
popd | ||
|
||
done | ||
|
||
pip install -e .[all] | ||
fi | ||
fi |