diff options
| author | Jack Nagel | 2014-03-24 20:22:29 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-03-24 20:22:29 -0500 |
| commit | 7ff6ad17f20e00baf5214de063b3a2a973c13798 (patch) | |
| tree | 20b147316863e602189f7e44e3be50e5f58e0527 /Library/Formula/pypy.rb | |
| parent | 49b2ef11ad0613d7e4e37a882ab3cb039ced992d (diff) | |
| download | homebrew-7ff6ad17f20e00baf5214de063b3a2a973c13798.tar.bz2 | |
pypy: use install_symlink
Diffstat (limited to 'Library/Formula/pypy.rb')
| -rw-r--r-- | Library/Formula/pypy.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Library/Formula/pypy.rb b/Library/Formula/pypy.rb index 2f204653d..3fb94d907 100644 --- a/Library/Formula/pypy.rb +++ b/Library/Formula/pypy.rb @@ -31,8 +31,7 @@ class Pypy < Formula # we want to avoid putting PyPy's Python.h somewhere that configure # scripts will find it. libexec.install Dir['*'] - bin.mkpath - ln_s libexec/'bin/pypy', bin/'pypy' + bin.install_symlink libexec/"bin/pypy" # Post-install, fix up the site-packages and install-scripts folders # so that user-installed Python software survives minor updates, such @@ -42,7 +41,7 @@ class Pypy < Formula prefix_site_packages.mkpath # Symlink the prefix site-packages into the cellar. - ln_s prefix_site_packages, libexec+'site-packages' + libexec.install_symlink prefix_site_packages # Tell distutils-based installers where to put scripts scripts_folder.mkpath @@ -60,12 +59,12 @@ class Pypy < Formula # Symlink to easy_install_pypy. unless (scripts_folder+'easy_install_pypy').exist? - ln_s "#{scripts_folder}/easy_install", "#{scripts_folder}/easy_install_pypy" + scripts_folder.install_symlink "easy_install" => "easy_install_pypy" end # Symlink to pip_pypy. unless (scripts_folder+'pip_pypy').exist? - ln_s "#{scripts_folder}/pip", "#{scripts_folder}/pip_pypy" + scripts_folder.install_symlink "pip" => "pip_pypy" end end |
