From 35cf2dc90314deb43a5c7fab329eed3a48f0fe6a Mon Sep 17 00:00:00 2001
From: Thierry Parmentelat <thierry.parmentelat@inria.fr>
Date: Sat, 29 Dec 2018 08:20:55 +0100
Subject: [PATCH] forward_api_calls is a binary and should not get packaged by
 setup.py, use make instead

---
 Makefile | 1 +
 setup.py | 3 ---
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 0b29c84..d2c22d5 100644
--- a/Makefile
+++ b/Makefile
@@ -43,6 +43,7 @@ install: install-miscell install-startup
 # need to ship on all nodes regardless of WITH_INIT and WITH_SYSTEMD that
 # impacts how nodemanager itself gets started
 install-miscell:
+	install -d -m 755 forward_api_calls $(DESTDIR)/$(bindir)/forward_api_calls
 	install -d -m 755 $(DESTDIR)/var/lib/nodemanager
 	install -D -m 644 /dev/null $(DESTDIR)/etc/sysconfig/nodemanager
 	install -D -m 444 README $(DESTDIR)/$(datadir)/NodeManager/README
diff --git a/setup.py b/setup.py
index 097c5f2..79debc0 100644
--- a/setup.py
+++ b/setup.py
@@ -55,9 +55,6 @@ setup(
         # this plugin uses vserver for now
         'plugins.drl',
         ],
-    scripts = [
-        'forward_api_calls',
-        ],
     packages =[
         ],
     )
-- 
2.47.0