Commit 41770a9e authored by satmandu's avatar satmandu Committed by GitHub

Default bin/python to python3 (#5239)

* Default python to python3

* Add pip3 and streamline removal of symlink

* use symlink for pip
parent 02af1d91
......@@ -65,5 +65,9 @@ class Python27 < Package
#puts "Upgrading pip...".lightblue
#system 'pip2 install --upgrade pip'
#puts
FileUtils.ln_sf "#{CREW_PREFIX}/bin/python3", "#{CREW_PREFIX}/bin/python" \
if File.exist? "#{CREW_PREFIX}/bin/python3"
FileUtils.ln_sf "#{CREW_PREFIX}/bin/pip3", "#{CREW_PREFIX}/bin/pip" \
if File.exist? "#{CREW_PREFIX}/bin/pip3"
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment