Commits

Lars Yencken committed 8b94d79

Prevent long-description from breaking package.

Comments (0)

Files changed (1)

 from setuptools import setup
 
 readme = os.path.join(os.path.dirname(__file__), 'README.md')
+readme_txt = open(readme).read() if os.path.exists(readme) else ''
 
 setup(
     name='globetrotter',
     version='0.1.1',
     description='Approximate country and language name matching.',
-    long_description=open(readme).read(),
+    long_description=readme_txt,
     author='Lars Yencken',
     author_email='lars@yencken.org',
     url='http://bitbucket.org/larsyencken/globetrotter',