X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=setup.py;fp=setup.py;h=8f67e094bd9edefb32af174e01b1d52ae6576b5b;hb=4db0fb4c8e067200712eb377e42013c6fc2c628b;hp=c8259f92d3ef0ee6a3d9ebdd356d0563fa7d006a;hpb=0a4c02a2bf0bf21726a6decf3e7f3f01ed32d89a;p=sfa.git diff --git a/setup.py b/setup.py index c8259f92..8f67e094 100755 --- a/setup.py +++ b/setup.py @@ -119,11 +119,16 @@ if sys.argv[1] in ['uninstall', 'remove', 'delete', 'clean']: feedback (directory, "failed") else: # avoid repeating what's in the specfile already - with open("LICENSE.txt") as l: - license = l.read() - long_description = "Could not open README.html" - with open("readme.html") as r: - long_description = r.read() + try: + with open("LICENSE.txt") as l: + license = l.read() + except: + license = "Could not open file LICENSE.txt" + try: + with open("index.html") as r: + long_description = r.read() + except: + long_description = "Unable to read index.html" setup(name='sfa', packages = packages,