diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-05-05 19:59:39 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-05-05 19:59:39 -0400 |
commit | a938092e7b189337cdd25c101c2e8fc984433eff (patch) | |
tree | d8da7234320d30a465ee02cd81b271694f78df66 /setup.py | |
parent | 92952a515bca3813de6d5e27638a8e7fcd0117a7 (diff) | |
download | external_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-x | setup.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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() |