Skip to content

Commit

Permalink
python3: don't symlink easy_install3 if it exists
Browse files Browse the repository at this point in the history
python3 installs would fail while linking
prefix/share/python3/easy_install to easy_install3 if the target already
existed, which caused any python3 installation after the initial to
fail. Skip linking if the symlink already exists.
  • Loading branch information
mistydemeo committed Jan 14, 2012
1 parent 832f085 commit 2e30f32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Library/Formula/python3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ def install
system "#{bin}/python3.2", "setup.py", "install"

# Symlink to easy_install3 to match python3 command.
ln_s "#{scripts_folder}/easy_install", "#{scripts_folder}/easy_install3"
if !(scripts_folder+'easy_install3').exist?
ln_s "#{scripts_folder}/easy_install", "#{scripts_folder}/easy_install3"
end
end
end

Expand Down

0 comments on commit 2e30f32

Please sign in to comment.