pypy: fix site-packages linkage

Fixes Homebrew/homebrew#48530.
This commit is contained in:
Tim D. Smith 2016-02-05 22:40:04 -08:00
parent deff2feda7
commit e703ed3040

View file

@ -87,6 +87,12 @@ class Pypy < Formula
prefix_site_packages.mkpath
# Symlink the prefix site-packages into the cellar.
if !(libexec/"site-packages").symlink?
# fix the case where libexec/site-packages/site-packages was installed
rm_rf libexec/"site-packages/site-packages"
mv Dir[libexec/"site-packages/*"], prefix_site_packages
rm_rf libexec/"site-packages"
end
libexec.install_symlink prefix_site_packages
# Tell distutils-based installers where to put scripts