Explorar o código

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

Ask Solem %!s(int64=16) %!d(string=hai) anos
pai
achega
e8845afc1a
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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(