浏览代码

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

Ask Solem 16 年之前
父节点
当前提交
e8845afc1a
共有 1 个文件被更改,包括 4 次插入1 次删除
  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(