1. Tarek Ziadé
  2. distribute


Jason R. Coombs  committed e94ca35

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

  • Participants
  • Parent commits 9f4af99
  • Branches default

Comments (0)

Files changed (1)

File setup.py

View file
 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')
+    # 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()