aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/python.rb
diff options
context:
space:
mode:
authorJack Nagel2014-03-30 22:46:00 -0500
committerJack Nagel2014-03-30 23:13:31 -0500
commitaad59307583a978c9036fd97065a444ac51cef7b (patch)
tree9207bfd95b73486c4b24b83890ca7a9e8af33916 /Library/Formula/python.rb
parent234902f4d8d6972bd7989be725a4dab2f8df6801 (diff)
downloadhomebrew-aad59307583a978c9036fd97065a444ac51cef7b.tar.bz2
Try harder not to leave sitecustomize.py in an inconsistent state
Diffstat (limited to 'Library/Formula/python.rb')
-rw-r--r--Library/Formula/python.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/python.rb b/Library/Formula/python.rb
index 1386dc1fc..3448db756 100644
--- a/Library/Formula/python.rb
+++ b/Library/Formula/python.rb
@@ -130,8 +130,8 @@ class Python < Formula
site_packages_cellar.parent.install_symlink site_packages
# Write our sitecustomize.py
- rm_rf Dir["#{site_packages}/sitecustomize.py{,c,o}"]
- (site_packages/"sitecustomize.py").write(sitecustomize)
+ rm_rf Dir["#{site_packages}/sitecustomize.py[co]"]
+ (site_packages/"sitecustomize.py").atomic_write(sitecustomize)
# Remove old setuptools installations that may still fly around and be
# listed in the easy_install.pth. This can break setuptools build with