Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
taste-setup
Commits
077e7133
Commit
077e7133
authored
Jul 22, 2017
by
Maxime Perrotin
Browse files
Merge branch 'master' of
https://gitrepos.estec.esa.int/taste/taste-setup
parents
23bc9c6b
362b29ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
install/53_pymsc.sh
View file @
077e7133
...
@@ -2,7 +2,23 @@
...
@@ -2,7 +2,23 @@
DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
.
${
DIR
}
/common.sh
.
${
DIR
}
/common.sh
# Setup pymsc in ~/.local
cd
$DIR
/../pymsc
||
exit
1
cd
$DIR
/../pymsc
||
exit
1
# Skip install if the version installed is the same and the tree is clean
HEAD
=
"
$(
grep
__version msccore/__init__.py |
awk
'{print $NF}'
)
"
VERSION_INSTALLED
=
"
$(
pip2 freeze |
grep
taste-msc |
awk
-F
=
'{print $NF}'
)
"
git status
>
/dev/null
TREE_CLEAN
=
$?
if
[
${
TREE_CLEAN
}
-eq
0
-a
"
${
HEAD
}
"
==
"
${
VERSION_INSTALLED
}
"
]
;
then
echo
taste-msc tree is clean and already installed. Skipping taste-msc install...
exit
0
fi
# Unfortunately, the --upgrade DOES NOT ALWAYS WORK.
# Uninstall first...
echo
y | pip2 uninstall taste-msc
pip2
install
--user
--upgrade
.
||
exit
1
pip2
install
--user
--upgrade
.
||
exit
1
# Add .local/bin to PATH
# Add .local/bin to PATH
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment