blob: cbc838f0e25568ca633b5e41d24cb4526a55f045 [file] [log] [blame]
Brad Bishop34ae6002019-04-08 15:21:03 -04001From 85307f592c7cb87af162cca4b121b874108b7754 Mon Sep 17 00:00:00 2001
2From: Alistair Francis <alistair.francis@wdc.com>
3Date: Tue, 2 Apr 2019 11:25:15 -0700
4Subject: [PATCH] setup.py: Don't hardcode swig and fann2 binary locations
5
6Upstream-Status: Inappropriate [configuration]
7Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
8---
9 setup.py | 5 +----
10 1 file changed, 1 insertion(+), 4 deletions(-)
11
12diff --git a/setup.py b/setup.py
13index 37af7c7..8e416f2 100755
14--- a/setup.py
15+++ b/setup.py
16@@ -81,11 +81,8 @@ def find_swig():
17
18 def build_swig():
19 '''Run SWIG with specified parameters'''
20- print("Looking for FANN libs...")
21- find_fann()
22- print("running SWIG...")
23 swig_bin = find_swig()
24- swig_cmd = [swig_bin, '-c++', '-python', 'fann2/fann2.i']
25+ swig_cmd = ['swig', '-c++', '-python', 'fann2/fann2.i']
26 subprocess.Popen(swig_cmd).wait()
27
28 if "sdist" not in sys.argv: