 ---
  getspice.py                      | 156 -------------------------
  setup.py                         | 240 +++++++--------------------------------
- spiceypy/utils/libspicehelper.py |   9 +-
- 3 files changed, 44 insertions(+), 361 deletions(-)
+ spiceypy/utils/libspicehelper.py |  16 ++-
+ 3 files changed, 51 insertions(+), 361 deletions(-)
  delete mode 100644 getspice.py
 
 diff --git getspice.py getspice.py

From cdd43702195cc506d79359a48930f1fc8f24fdbf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Juan=20Luis=20Cano=20Rodr=C3=ADguez?= <juanlu001@gmail.com>
Date: Sun, 22 Oct 2017 14:53:48 +0200
Subject: [PATCH] Remove CSPICE installation logic

-sharedLib = "cspice.dll" if host_OS == "Windows" else "spice.so"
-sitePath = os.path.join(os.path.dirname(__file__), sharedLib)
-libspice = CDLL(sitePath)
+
+if host_OS == "Windows":
+    from ctypes import windll
+    loader = windll
+else:
+    from ctypes import cdll
+    loader = cdll
+
+sharedLib = "cspice.dll" if host_OS == "Windows" else "libcspice.so"
+libspice = loader.LoadLibrary(sharedLib)
 
 __author__ = 'AndrewAnnex'
