From 7a61313dda299b16c4af3260ae5c11ce5945ed97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 5 Nov 2017 09:24:00 +0100 Subject: [PATCH] Link against the shared library --- setup.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/setup.py b/setup.py index b84146f..73b05b7 100644 --- a/setup.py +++ b/setup.py @@ -13,13 +13,6 @@ from setuptools.command import build_ext import subprocess import os -EXT = ['libminiupnpc.a'] - -class make_then_build_ext(build_ext.build_ext): - def run(self): - subprocess.check_call([os.environ.get('MAKE', 'make')] + EXT) - build_ext.build_ext.run(self) - setup(name="miniupnpc", version=open('VERSION').read().strip(), author='Thomas BERNARD', @@ -27,9 +20,8 @@ setup(name="miniupnpc", license=open('LICENSE').read(), url='http://miniupnp.free.fr/', description='miniUPnP client', - cmdclass={'build_ext': make_then_build_ext}, ext_modules=[ Extension(name="miniupnpc", sources=["miniupnpcmodule.c"], - extra_objects=EXT) + libraries=['miniupnpc']) ]) -- 2.15.0.rc2