Brad Bishop | 34ae600 | 2019-04-08 15:21:03 -0400 | [diff] [blame] | 1 | From 85307f592c7cb87af162cca4b121b874108b7754 Mon Sep 17 00:00:00 2001 |
| 2 | From: Alistair Francis <alistair.francis@wdc.com> |
| 3 | Date: Tue, 2 Apr 2019 11:25:15 -0700 |
| 4 | Subject: [PATCH] setup.py: Don't hardcode swig and fann2 binary locations |
| 5 | |
| 6 | Upstream-Status: Inappropriate [configuration] |
| 7 | Signed-off-by: Alistair Francis <alistair.francis@wdc.com> |
| 8 | --- |
| 9 | setup.py | 5 +---- |
| 10 | 1 file changed, 1 insertion(+), 4 deletions(-) |
| 11 | |
| 12 | diff --git a/setup.py b/setup.py |
| 13 | index 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: |