diff options
| author | Misty De Meo | 2012-01-13 23:23:44 -0600 |
|---|---|---|
| committer | Misty De Meo | 2012-01-13 23:39:06 -0600 |
| commit | 2e30f3299733ade28703f5baefe1b00a9d364cec (patch) | |
| tree | 49213d02f6afb0d2f4e50108f14b6c272c2af950 /Library/Formula/python3.rb | |
| parent | 832f085a8937c2243302fbdbc59f468c3166f80f (diff) | |
| download | homebrew-2e30f3299733ade28703f5baefe1b00a9d364cec.tar.bz2 | |
python3: don't symlink easy_install3 if it exists
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.
Diffstat (limited to 'Library/Formula/python3.rb')
| -rw-r--r-- | Library/Formula/python3.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Formula/python3.rb b/Library/Formula/python3.rb index 88df09e21..9805a14f8 100644 --- a/Library/Formula/python3.rb +++ b/Library/Formula/python3.rb @@ -102,7 +102,9 @@ class Python3 < Formula 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 |
