Skip to content
Snippets Groups Projects
Commit 6b782d85 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

tweaks to conda build

parent 90d60b73
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,11 @@ for channel in $CONDA_CHANNELS; do ...@@ -10,6 +10,11 @@ for channel in $CONDA_CHANNELS; do
conda config --append channels $channel conda config --append channels $channel
done done
# make sure to update fundamental
# packages from the default channel
conda update --yes -c defaults -n base conda
conda install --yes -c defaults -n base setuptools conda-build
# insert project name/version into meta.yaml # insert project name/version into meta.yaml
echo "{% set name = '$name' %}" > vars.txt echo "{% set name = '$name' %}" > vars.txt
echo "{% set version = '$version' %}" >> vars.txt echo "{% set version = '$version' %}" >> vars.txt
...@@ -17,22 +22,14 @@ cat vars.txt .conda/meta.yaml > tempfile ...@@ -17,22 +22,14 @@ cat vars.txt .conda/meta.yaml > tempfile
mv tempfile .conda/meta.yaml mv tempfile .conda/meta.yaml
rm vars.txt rm vars.txt
mkdir -p dist mkdir -p dist/conda-bld
conda update --yes conda
conda install --yes setuptools conda-build
conda build --output-folder=dist .conda
# tar it up conda build --output-folder=dist/conda-bld .conda
cd dist
tar czf "$name"-"$version"-conda.tar.gz *
cd ..
# Make sure package is installable # Make sure package is installable
for pyver in 2.7 3.4 3.5 3.6; do for pyver in 2.7 3.4 3.5 3.6; do
conda create -y --name "test$pyver" python=$pyver conda create -y --name "test$pyver" python=$pyver
source activate test$pyver source activate test$pyver
conda install -y -c file://`pwd`/dist fslpy conda install -y -c file://`pwd`/dist $name
source deactivate source deactivate
done done
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
set -e set -e
rsync -rv dist/*conda.tar.gz "condadeploy:" rsync -rv dist/conda-bld/ --exclude 'repodata*' --exclude "*json" "condadeploy:"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment