From dda3d24bca8c00f58598523c60902c89581c8da2 Mon Sep 17 00:00:00 2001 From: Naoki INADA Date: Thu, 29 Apr 2010 07:08:41 +0900 Subject: [PATCH] Add download url. --- python/MANIFEST.in | 1 + python/setup.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/python/MANIFEST.in b/python/MANIFEST.in index 6841ffef..cbc9ada3 100644 --- a/python/MANIFEST.in +++ b/python/MANIFEST.in @@ -1,2 +1,3 @@ include setup.py +include COPYING recursive-include msgpack *.h *.c *.pyx diff --git a/python/setup.py b/python/setup.py index 66cf27e8..2feaff99 100755 --- a/python/setup.py +++ b/python/setup.py @@ -29,6 +29,10 @@ if have_cython: else: sources = ['msgpack/_msgpack.c'] + for f in sources: + if not os.path.exists(f): + raise ImportError("Building msgpack from VCS needs Cython. Install Cython or use sdist package.") + Sdist = sdist msgpack_mod = Extension('msgpack._msgpack', @@ -60,6 +64,7 @@ setup(name='msgpack', description=desc, long_description=long_desc, url="http://msgpack.sourceforge.jp/", + download_url='http://pypi.python.org/pypi/msgpack/', classifiers=[ 'Development Status :: 4 - Beta', 'Intended Audience :: Developers',