diff options
| author | INADA Naoki <songofacandy@gmail.com> | 2010-11-03 03:35:52 +0900 |
|---|---|---|
| committer | INADA Naoki <songofacandy@gmail.com> | 2010-11-03 03:35:52 +0900 |
| commit | bb69aa18f2036f8f2b908e219de2dc5287a19c69 (patch) | |
| tree | 0eb5894803351f0326152bbacba44b06c0b745d6 /python/setup.py | |
| parent | e4f515166aeb5ea35094a354e5859dd39e5f9b7d (diff) | |
| download | msgpack-python-bb69aa18f2036f8f2b908e219de2dc5287a19c69.tar.gz | |
python: Add ws2_32 library if platform is win32.
Diffstat (limited to 'python/setup.py')
| -rwxr-xr-x | python/setup.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/python/setup.py b/python/setup.py index ac7ece5..aedd990 100755 --- a/python/setup.py +++ b/python/setup.py @@ -3,6 +3,7 @@ version = (0, 1, 6, 'final') import os +import sys from glob import glob from distutils.core import setup, Extension from distutils.command.sdist import sdist @@ -42,10 +43,13 @@ else: Sdist = sdist +libraries = ['ws2_32'] if sys.platform == 'win32' else [] + msgpack_mod = Extension('msgpack._msgpack', sources=sources, + libraries=libraries, ) -del sources +del sources, libraries desc = 'MessagePack (de)serializer.' @@ -69,6 +73,7 @@ setup(name='msgpack-python', url='http://msgpack.sourceforge.net/', download_url='http://pypi.python.org/pypi/msgpack/', classifiers=[ + 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 3', 'Development Status :: 4 - Beta', 'Intended Audience :: Developers', |
