Skip to content

Commit

Permalink
remove python2 setup as bitbake now uses python3
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrake committed Jan 31, 2017
1 parent 408457e commit c1669ff
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions envsetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,21 +118,6 @@ export PATH=${OE_BASE}/tools:${PATH}
# export PATH=`echo $PATH_ | awk -F: '{for (i=1;i<=NF;i++) { if ( !x[$i]++ ) printf("%s:",$i); }}'`
export PATH=`awk -F: '{for(i=1;i<=NF;i++){if(!($i in a)){a[$i];printf s$i;s=":"}}}'<<<$PATH`
#--------------------------------------------------------------------------
# set up soft links to /usr/bin/python2 if it exists
# this helps if /usr/bin/python is python3
#--------------------------------------------------------------------------
if [ -e /usr/bin/python2 ] && ! [ -L tools/python ]; then
echo "linking to python2"
ln -s /usr/bin/python2 tools/python
fi
if [ -e /usr/bin/python2-config ] && ! [ -L tools/python-config ]; then
echo "linking to python2-config"
ln -s /usr/bin/python2-config tools/python-config
fi
#--------------------------------------------------------------------------
# Make sure Bitbake doesn't filter out the following variables from our
# environment.
Expand Down

0 comments on commit c1669ff

Please sign in to comment.