From 0ac8e242f1c48b9c76af2d87923e4eff30b29f1a Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 30 Mar 2014 22:39:07 -0500 Subject: [PATCH] Stop removing *all* python files on install --- Formula/python.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/python.rb b/Formula/python.rb index 4538f0a3ab9..1386dc1fc1f 100644 --- a/Formula/python.rb +++ b/Formula/python.rb @@ -130,7 +130,7 @@ class Python < Formula site_packages_cellar.parent.install_symlink site_packages # Write our sitecustomize.py - Dir["#{site_packages}/*.py{,c,o}"].each {|f| Pathname.new(f).unlink } + rm_rf Dir["#{site_packages}/sitecustomize.py{,c,o}"] (site_packages/"sitecustomize.py").write(sitecustomize) # Remove old setuptools installations that may still fly around and be