aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunk@stsci.edu>2016-03-21 22:24:27 -0400
committerJoe Hunkeler <jhunk@stsci.edu>2016-03-21 22:24:41 -0400
commit7525ff6f54947581a498d57799f63dcd7dff140f (patch)
treedc0334892d47af9cf2f0486c03e060857ead7850
parent0aa36c3692b2b40ed82ec90ad78d3105e32bb338 (diff)
downloadcbc-master.tar.gz
Add feature: --skip-existing, deprecate binstar in favor of anacondaHEADmaster
-rwxr-xr-xscripts/cbc_monolith14
1 files changed, 12 insertions, 2 deletions
diff --git a/scripts/cbc_monolith b/scripts/cbc_monolith
index 5e05ae7..9b7225e 100755
--- a/scripts/cbc_monolith
+++ b/scripts/cbc_monolith
@@ -15,6 +15,7 @@ BRANCH=""
BRANCH_MANIFEST=""
TRACK_CHANNEL=""
STOP_ON_FAILURE="yes"
+SKIP_EXISTING="no"
function usage {
@@ -25,6 +26,7 @@ function usage {
--branch -b Build from a branch (or tag)
--branch-manifest List containing git_url patterns
--track-channel -t Build against remote repo
+ --skip-existing -s Skip packages that already exist
--keep-going -k Do not stop on first failure
--cbc-recipes -c Path to CBC recipes directory
--cbc-output-dir -o Path to CONDA recipes
@@ -150,13 +152,18 @@ function build() {
TC="-c $TRACK_CHANNEL"
fi
+ SE=" "
+ if [[ "$SKIP_EXISTING" == "yes" ]]; then
+ SE="--skip-existing"
+ fi
+
set -x
conda build -q \
- --no-binstar-upload \
+ --no-anaconda-upload \
--python $PYTHON_VERSION \
--numpy $NUMPY_VERSION \
- --override-channels -c defaults \
$TC \
+ $SE \
"$recipe"
set +x
@@ -268,6 +275,9 @@ do
--keep-going|-k)
STOP_ON_FAILURE="no"
;;
+ --skip-existing|-s)
+ SKIP_EXISTING="yes"
+ ;;
*)
echo "Unknown option: $1"
usage