mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-03-24 01:26:33 +01:00
python: Add ws2_32 library if platform is win32.
This commit is contained in:
parent
e4f515166a
commit
bb69aa18f2
@ -3,6 +3,7 @@
|
|||||||
version = (0, 1, 6, 'final')
|
version = (0, 1, 6, 'final')
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
from glob import glob
|
from glob import glob
|
||||||
from distutils.core import setup, Extension
|
from distutils.core import setup, Extension
|
||||||
from distutils.command.sdist import sdist
|
from distutils.command.sdist import sdist
|
||||||
@ -42,10 +43,13 @@ else:
|
|||||||
|
|
||||||
Sdist = sdist
|
Sdist = sdist
|
||||||
|
|
||||||
|
libraries = ['ws2_32'] if sys.platform == 'win32' else []
|
||||||
|
|
||||||
msgpack_mod = Extension('msgpack._msgpack',
|
msgpack_mod = Extension('msgpack._msgpack',
|
||||||
sources=sources,
|
sources=sources,
|
||||||
|
libraries=libraries,
|
||||||
)
|
)
|
||||||
del sources
|
del sources, libraries
|
||||||
|
|
||||||
|
|
||||||
desc = 'MessagePack (de)serializer.'
|
desc = 'MessagePack (de)serializer.'
|
||||||
@ -69,6 +73,7 @@ setup(name='msgpack-python',
|
|||||||
url='http://msgpack.sourceforge.net/',
|
url='http://msgpack.sourceforge.net/',
|
||||||
download_url='http://pypi.python.org/pypi/msgpack/',
|
download_url='http://pypi.python.org/pypi/msgpack/',
|
||||||
classifiers=[
|
classifiers=[
|
||||||
|
'Programming Language :: Python :: 2',
|
||||||
'Programming Language :: Python :: 3',
|
'Programming Language :: Python :: 3',
|
||||||
'Development Status :: 4 - Beta',
|
'Development Status :: 4 - Beta',
|
||||||
'Intended Audience :: Developers',
|
'Intended Audience :: Developers',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user