summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-12-05 12:25:51 -0300
committerTomás Touceda <chiiph@leap.se>2013-12-05 12:25:51 -0300
commitfb85215890666f39cd3826be14e01ff3c2698371 (patch)
tree4e7cc3a6af034a1f85c277d5507a8b646a421719
parent29e6a3367f537b6b09e43731a4d930293a3b1372 (diff)
parent98c6b7869dbf8f690bc3dc7c0288afe4990204ed (diff)
Merge remote-tracking branch 'refs/remotes/kali/bug/fix-missing-readme-while-pip' into develop
-rw-r--r--setup.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/setup.py b/setup.py
index 519ddb3..264d04c 100644
--- a/setup.py
+++ b/setup.py
@@ -104,6 +104,11 @@ def get_versions(default={}, verbose=False):
with open(versioneer.versionfile_source, 'w') as f:
f.write(subst_template)
+try:
+ long_description = open('README.rst').read() + '\n\n\n' + \
+ open('CHANGELOG').read()
+except Exception:
+ long_description = ""
cmdclass["freeze_debianver"] = freeze_debianver
setup(
@@ -118,8 +123,7 @@ setup(
maintainer='Kali Kaneko',
maintainer_email='kali@leap.se',
description='Common files used by the LEAP project.',
- long_description=open('README.rst').read() + '\n\n\n' +
- open('CHANGELOG').read(),
+ long_description=long_description,
classifiers=trove_classifiers,
namespace_packages=["leap"],
package_dir={'': 'src'},