Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michiel Cottaar
fslpy
Commits
6b782d85
Commit
6b782d85
authored
7 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
tweaks to conda build
parent
90d60b73
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.ci/build_conda_dist.sh
+8
-11
8 additions, 11 deletions
.ci/build_conda_dist.sh
.ci/deploy_conda.sh
+1
-1
1 addition, 1 deletion
.ci/deploy_conda.sh
with
9 additions
and
12 deletions
.ci/build_conda_dist.sh
+
8
−
11
View file @
6b782d85
...
...
@@ -10,6 +10,11 @@ for channel in $CONDA_CHANNELS; do
conda config
--append
channels
$channel
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
echo
"{% set name = '
$name
' %}"
>
vars.txt
echo
"{% set version = '
$version
' %}"
>>
vars.txt
...
...
@@ -17,22 +22,14 @@ cat vars.txt .conda/meta.yaml > tempfile
mv
tempfile .conda/meta.yaml
rm
vars.txt
mkdir
-p
dist
conda update
--yes
conda
conda
install
--yes
setuptools conda-build
conda build
--output-folder
=
dist .conda
mkdir
-p
dist/conda-bld
# tar it up
cd
dist
tar
czf
"
$name
"
-
"
$version
"
-conda
.tar.gz
*
cd
..
conda build
--output-folder
=
dist/conda-bld .conda
# Make sure package is installable
for
pyver
in
2.7 3.4 3.5 3.6
;
do
conda create
-y
--name
"test
$pyver
"
python
=
$pyver
source
activate
test
$pyver
conda
install
-y
-c
file://
`
pwd
`
/dist
fslpy
conda
install
-y
-c
file://
`
pwd
`
/dist
$name
source
deactivate
done
This diff is collapsed.
Click to expand it.
.ci/deploy_conda.sh
+
1
−
1
View file @
6b782d85
...
...
@@ -2,4 +2,4 @@
set
-e
rsync
-rv
dist/
*
conda
.tar.gz
"condadeploy:"
rsync
-rv
dist/conda
-bld/
--exclude
'repodata*'
--exclude
"*json"
"condadeploy:"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment