aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-05-05 19:59:39 -0400
committerJason R. Coombs <jaraco@jaraco.com>2013-05-05 19:59:39 -0400
commita938092e7b189337cdd25c101c2e8fc984433eff (patch)
treed8da7234320d30a465ee02cd81b271694f78df66 /setup.py
parent92952a515bca3813de6d5e27638a8e7fcd0117a7 (diff)
downloadexternal_python_setuptools-a938092e7b189337cdd25c101c2e8fc984433eff.tar.gz
external_python_setuptools-a938092e7b189337cdd25c101c2e8fc984433eff.tar.bz2
external_python_setuptools-a938092e7b189337cdd25c101c2e8fc984433eff.zip
Allow the setup script to run even if the linked changelog hasn't been generated
--HG-- branch : distribute extra : rebase_source : e94ca350b1a601b75ff6ae786dcdabbe517877c3
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index e79fb659..eeec3153 100755
--- a/setup.py
+++ b/setup.py
@@ -134,7 +134,12 @@ if _being_installed():
_before_install()
readme_file = open('README.txt')
-changes_file = open('CHANGES (links).txt')
+# the release script adds hyperlinks to issues
+if os.path.exists('CHANGES (links).txt'):
+ changes_file = open('CHANGES (links).txt')
+else:
+ # but if the release script has not run, fall back to the source file
+ changes_file = open('CHANGES.txt')
long_description = readme_file.read() + changes_file.read()
readme_file.close()
changes_file.close()