-diff -rupN pyjq-2.2.0/setup.py pyjq-2.2.0-patched/setup.py
---- pyjq-2.2.0/setup.py	2017-08-01 15:06:36.000000000 -0400
-+++ pyjq-2.2.0-patched/setup.py	2017-08-01 15:16:39.000000000 -0400
-@@ -6,7 +6,12 @@ import tarfile
- import shutil
+--- pyjq-2.3.0.orig/setup.py	2019-04-10 16:28:01.593747653 +0000
++++ pyjq-2.3.0/setup.py	2019-04-10 16:31:25.783693890 +0000
+@@ -7,60 +7,23 @@
  from os.path import join, dirname, abspath
+ import platform
  
 -import sysconfig
 +try:

-            shutil.rmtree(d)
-        except OSError:
-            pass
-
 
 pyjq = Extension(
     "_pyjq",
     sources=["_pyjq.c"],
-    include_dirs=["dependencies/jq_install/include"],
-    libraries=["jq", "onig"],
-    library_dirs=["dependencies/jq_install/lib", "dependencies/onig_install/lib"]
+    libraries=["jq", "onig"]
 )
 
 setup(
@@ -102,7 +53,6 @@ setup(
     author='OMOTO Kenji',
     url='http://github.com/doloopwhile/pyjq',
     license='MIT License',

-                ["./configure", "CFLAGS=-fPIC", "--disable-maintainer-mode",
-                 "--enable-all-static", "--disable-shared",
-                 "--with-oniguruma=" + onig_install_path, "--prefix", jq_install_path],
-                ["make", "install-libLTLIBRARIES", "install-includeHEADERS"],
-            ]
-        )
-
     def _build_lib(self, lib_dir, commands):
         macosx_deployment_target = sysconfig.get_config_var("MACOSX_DEPLOYMENT_TARGET")
         if macosx_deployment_target:
@@ -69,25 +32,13 @@
         for command in commands:
             subprocess.check_call(command, cwd=lib_dir)
 
