Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
taste-setup
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TASTE
taste-setup
Commits
be2f848e
Commit
be2f848e
authored
Jul 22, 2017
by
Thanassis Tsiodras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use 'pip uninstall', to handle the failure of --upgrade
parent
8bc8fe8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
install/50_opengeode.sh
install/50_opengeode.sh
+17
-0
No files found.
install/50_opengeode.sh
View file @
be2f848e
...
...
@@ -2,7 +2,24 @@
DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
.
${
DIR
}
/common.sh
# Setup opengeode in ~/.local/bin
cd
$DIR
/../opengeode
||
exit
1
# Skip install if the version installed is the same and the tree is clean
HEAD
=
"
$(
grep
_version_ opengeode/opengeode.py |
head
-1
|
awk
-F
\'
'{print $2}'
)
"
VERSION_INSTALLED
=
"
$(
opengeode
--version
2>&1
)
"
git status
>
/dev/null
TREE_CLEAN
=
$?
if
[
${
TREE_CLEAN
}
-eq
0
-a
"
${
HEAD
}
"
==
"
${
VERSION_INSTALLED
}
"
]
;
then
echo
OpenGEODE tree is clean and already installed. Skipping OpenGEODE install...
exit
0
fi
# Unfortunately, the --upgrade DOES NOT ALWAYS WORK.
# Uninstall first...
echo
y | pip2 uninstall opengeode
pip2
install
--user
--upgrade
.
||
exit
1
# 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