Skip to content

Commit

Permalink
python: write distutils.cfg atomically
Browse files Browse the repository at this point in the history
  • Loading branch information
jacknagel committed Apr 15, 2014
1 parent 8b28c67 commit b1a4482
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Formula/python.rb
Expand Up @@ -176,8 +176,7 @@ def post_install

# And now we write the distutils.cfg
cfg = lib_cellar/"distutils/distutils.cfg"
cfg.delete if cfg.exist?
cfg.write <<-EOF.undent
cfg.atomic_write <<-EOF.undent
[global]
verbose=1
[install]
Expand Down
3 changes: 1 addition & 2 deletions Formula/python3.rb
Expand Up @@ -156,8 +156,7 @@ def post_install

# And now we write the distutils.cfg
cfg = prefix/"Frameworks/Python.framework/Versions/#{VER}/lib/python#{VER}/distutils/distutils.cfg"
cfg.delete if cfg.exist?
cfg.write <<-EOF.undent
cfg.atomic_write <<-EOF.undent
[global]
verbose=1
[install]
Expand Down

0 comments on commit b1a4482

Please sign in to comment.