summaryrefslogtreecommitdiff
blob: 48002fb47a82f205786d1325f8ed3ea4461056c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From 7a61313dda299b16c4af3260ae5c11ce5945ed97 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
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 = ['build/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',
@@ -30,6 +23,5 @@ setup(name="miniupnpc",
-      cmdclass={'build_ext': make_then_build_ext},
       ext_modules=[
          Extension(name="miniupnpc", sources=["src/miniupnpcmodule.c"],
-                   include_dirs=['include'], extra_objects=EXT)
+                   include_dirs=['/usr/include/miniupnpc'], libraries=['miniupnpc'])
       ])
 
-- 
2.15.0.rc2