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
55552fbd
Commit
55552fbd
authored
7 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
Maybe this will work?
parent
ade028fb
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.ci/build_conda_dist.sh
+8
-30
8 additions, 30 deletions
.ci/build_conda_dist.sh
.conda/bld.bat
+0
-2
0 additions, 2 deletions
.conda/bld.bat
.conda/build.sh
+0
-1
0 additions, 1 deletion
.conda/build.sh
.conda/meta.yaml
+5
-6
5 additions, 6 deletions
.conda/meta.yaml
with
13 additions
and
39 deletions
.ci/build_conda_dist.sh
+
8
−
30
View file @
55552fbd
...
@@ -2,45 +2,23 @@
...
@@ -2,45 +2,23 @@
conda update conda
conda update conda
conda
install
setuptools conda-build
conda
install
setuptools conda-build
cd
.conda
cd
.conda
mkdir
-p
../dist
# get version and name
# get version and name
version
=
`
python ../setup.py
-V
`
version
=
`
python ../setup.py
-V
`
name
=
`
python ../setup.py
--name
`
name
=
`
python ../setup.py
--name
`
# get requirements, and make
cat
../requirements.txt
>
requirements.txt
# them conda compatible...
cat
../requirements-dev.txt
>>
requirements.txt
# strip all spaces
reqs
=
`
cat
../requirements.txt ../requirements-dev.txt |
sed
-e
's/ //g'
`
# add a space after package name -
# package names must match a-zA-Z0-9_
reqs
=
`
echo
"
$reqs
"
|
sed
-e
"s/^[a-zA-Z0-9_][a-zA-Z0-9_]*/& /g"
`
# remove ==, replace it with a space
reqs
=
`
echo
"
$reqs
"
|
sed
-e
"s/==/ /g"
`
# wrap each dep in quotes
echo
"{% set name = '
$name
' %}"
>
vars.txt
reqs
=
`
echo
"
$reqs
"
|
sed
-e
"s/^.*
$/
'&'/g"
`
echo
"{% set version = '
$version
' %}"
>>
vars.txt
# add a comma at the end
reqs
=
`
echo
"
$reqs
"
|
sed
-e
"s/
$/
,/g"
`
# remove newlines
reqs
=
`
echo
$reqs
`
echo
"version:
$version
"
echo
"name:
$name
"
echo
"reqs:
$reqs
"
echo
"{% set name = 'name' %}"
>
vars.txt
echo
"{% set version = '
$version
' %}"
>>
vars.txt
echo
"{% set requirements = [
$reqs
] %}"
>>
vars.txt
cat
vars.txt meta.yaml
>
tempfile
cat
vars.txt meta.yaml
>
tempfile
mv
tempfile meta.yaml
mv
tempfile meta.yaml
rm
vars.txt
rm
vars.txt
conda build fslpy
conda build
--output-folder
=
../dist
.
cd
..
This diff is collapsed.
Click to expand it.
.conda/bld.bat
deleted
100644 → 0
+
0
−
2
View file @
ade028fb
"
%PYTHON%
"
setup
.py
install
if
errorlevel
1
exit
1
This diff is collapsed.
Click to expand it.
.conda/build.sh
deleted
100644 → 0
+
0
−
1
View file @
ade028fb
$PYTHON
setup.py
install
# Python command to install the script.
This diff is collapsed.
Click to expand it.
.conda/meta.yaml
+
5
−
6
View file @
55552fbd
...
@@ -2,6 +2,11 @@ package:
...
@@ -2,6 +2,11 @@ package:
name
:
'
{{
name
}}'
name
:
'
{{
name
}}'
version
:
'
{{
version
}}'
version
:
'
{{
version
}}'
build
:
noarch
:
python
script
:
python setup.py install --single-version-externally-managed --record=record.txt
source
:
source
:
path
:
path
:
../
../
...
@@ -10,12 +15,6 @@ requirements:
...
@@ -10,12 +15,6 @@ requirements:
build
:
build
:
-
python
-
python
-
setuptools
-
setuptools
{
%
for r in requirements %
}
-
{{
r
}}
{
%
endfor %
}
run
:
run
:
-
python
-
python
{
%
for r in requirements %
}
-
{{
r
}}
{
%
endfor %
}
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