Skip to content

Commit

Permalink
Add install script for installing from source.
Browse files Browse the repository at this point in the history
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
lossyrob committed Nov 23, 2020
1 parent 84a501b commit 21ba8c3
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 9 deletions.
10 changes: 1 addition & 9 deletions scripts/cibuild
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,7 @@ if [ "${BASH_SOURCE[0]}" = "${0}" ]; then
python -m pip install --upgrade pip
pip install -r requirements-dev.txt

for PACKAGE_DIR in "${STACTOOLS_SUBPACKAGE_DIRS[@]}"
do
pushd ./${PACKAGE_DIR}
pip install -e .
popd

done

pip install -e .[all]
./scripts/install

./scripts/test
fi
Expand Down
33 changes: 33 additions & 0 deletions scripts/install
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

0 comments on commit 21ba8c3

Please sign in to comment.