aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Formula/python.rb1
-rw-r--r--Library/Formula/python3.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/Library/Formula/python.rb b/Library/Formula/python.rb
index 3de30b917..c934dbe37 100644
--- a/Library/Formula/python.rb
+++ b/Library/Formula/python.rb
@@ -148,6 +148,7 @@ class Python < Formula
site_packages.mkpath
# Symlink the prefix site-packages into the cellar.
+ site_packages_cellar.unlink
site_packages_cellar.parent.install_symlink site_packages
# Write our sitecustomize.py
diff --git a/Library/Formula/python3.rb b/Library/Formula/python3.rb
index 0d0565909..25b1eeb08 100644
--- a/Library/Formula/python3.rb
+++ b/Library/Formula/python3.rb
@@ -137,6 +137,7 @@ class Python3 < Formula
site_packages.mkpath
# Symlink the prefix site-packages into the cellar.
+ site_packages_cellar.unlink
site_packages_cellar.parent.install_symlink site_packages
# Write our sitecustomize.py