From aad59307583a978c9036fd97065a444ac51cef7b Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 30 Mar 2014 22:46:00 -0500 Subject: Try harder not to leave sitecustomize.py in an inconsistent state --- Library/Formula/python3.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/Formula/python3.rb') diff --git a/Library/Formula/python3.rb b/Library/Formula/python3.rb index e864532c1..b0d6bea13 100644 --- a/Library/Formula/python3.rb +++ b/Library/Formula/python3.rb @@ -121,8 +121,8 @@ class Python3 < 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 -- cgit v1.2.3