diff options
author | iElectric <none@none> | 2012-04-16 12:46:12 +0200 |
---|---|---|
committer | iElectric <none@none> | 2012-04-16 12:46:12 +0200 |
commit | b35960c77a05217ed4db1e7e9ec86570f4e9b6dc (patch) | |
tree | 24ae87fee0544417745dc78b6fa76facc54a501e /distribute_setup.py | |
parent | 0f29131df992aff401a8157931e419570826acaa (diff) | |
download | external_python_setuptools-b35960c77a05217ed4db1e7e9ec86570f4e9b6dc.tar.gz external_python_setuptools-b35960c77a05217ed4db1e7e9ec86570f4e9b6dc.tar.bz2 external_python_setuptools-b35960c77a05217ed4db1e7e9ec86570f4e9b6dc.zip |
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
Diffstat (limited to 'distribute_setup.py')
-rw-r--r-- | distribute_setup.py | 3 |
1 files changed, 3 insertions, 0 deletions
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: |