Commit a938092e authored by Jason R. Coombs's avatar Jason R. Coombs

Allow the setup script to run even if the linked changelog hasn't been generated

--HG--
branch : distribute
extra : rebase_source : e94ca350b1a601b75ff6ae786dcdabbe517877c3
parent 92952a51
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment