From b35960c77a05217ed4db1e7e9ec86570f4e9b6dc Mon Sep 17 00:00:00 2001 From: iElectric Date: Mon, 16 Apr 2012 12:46:12 +0200 Subject: In the bootstrap script, don't attempt to write the setuptools egg info if write permission isn't available. Fixes #231. --HG-- branch : distribute extra : rebase_source : 2815a510842f63905a58f6e446b3889a81944299 --- CHANGES.txt | 6 ++++++ distribute_setup.py | 3 +++ 2 files changed, 9 insertions(+) diff --git a/CHANGES.txt b/CHANGES.txt index 5e918760..f6bece74 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -2,6 +2,12 @@ CHANGES ======= +------ +0.6.27 +------ + +* Issue #231: Don't fiddle with system python when used with buildout (bootstrap.py) + ------ 0.6.26 ------ diff --git a/distribute_setup.py b/distribute_setup.py index ba46350d..b8c4a11d 100644 --- a/distribute_setup.py +++ b/distribute_setup.py @@ -306,6 +306,9 @@ def _create_fake_setuptools_pkg_info(placeholder): log.warn('%s already exists', pkg_info) return + if not os.access(pkg_info, os.W_OK): + log.warn("Don't have permissions to write %s, skipping", pkg_info) + log.warn('Creating %s', pkg_info) f = open(pkg_info, 'w') try: -- cgit v1.2.1