Bladeren bron

Only use README as long_description if the file exists so easy_install don't
break. Closes #11. Thanks tobycatlin

Ask Solem 16 jaren geleden
bovenliggende
commit
e8845afc1a
1 gewijzigde bestanden met toevoegingen van 4 en 1 verwijderingen
  1. 4 1
      setup.py

+ 4 - 1
setup.py

@@ -48,7 +48,10 @@ py_minor_version = py_version_info[1]
 if (py_major_version == 2 and py_minor_version <=5) or py_major_version < 2:
     install_requires.append("multiprocessing")
 
-long_description = codecs.open("README", "r", "utf-8").read()
+if os.path.exists("README"):
+    long_description = codecs.open("README", "r", "utf-8").read()
+else:
+    long_description = "See http://pypi.python.org/pypi/celery"
 
 
 setup(