Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tapasco
tapasco
Commits
68ebd4f5
Commit
68ebd4f5
authored
May 07, 2019
by
Carsten Heinz
Committed by
Jaco A. Hofmann
May 08, 2019
Browse files
Add check for python in setup.sh
parent
382c9c56
Changes
1
Hide whitespace changes
Inline
Side-by-side
setup.sh
View file @
68ebd4f5
...
...
@@ -29,6 +29,11 @@ export TapascoTLKM_DIR=${TAPASCO_HOME}/build/install/usr/local/share/Tapasco/cma
if
echo
"
${
PATH
}
"
|
grep
--quiet
"cmake-3.3.2"
;
then
echo
"Removing old CMake version 3.3.2 distributed with Vivado from Path"
export
PATH
=
`
python
-c
"import re; print(re.sub(r'[:][^:]*?cmake[-]3[.]3[.]2.*?[:]', ':', '
${
PATH
}
'));"
`
if
!
command
-v
python
>
/dev/null
;
then
echo
"Could not remove old CMake version from Path. Please install python"
else
echo
"Removing old CMake version 3.3.2 distributed with Vivado from Path"
export
PATH
=
`
python
-c
"import re; print(re.sub(r'[:][^:]*?cmake[-]3[.]3[.]2.*?[:]', ':', '
${
PATH
}
'));"
`
fi
fi
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