  from setuptools import setup
  from setuptools.extension import Extension
  from setuptools.command.build_ext import _build_ext
-@@ -15,54 +20,11 @@ from Cython.Build import cythonize
  
  long_description = io.open('README.rst', encoding='utf-8').read()
  
 -dependencies_dir_path = join(abspath(dirname(__file__)), "dependencies")
 -
--onig_tarball_path = join(dependencies_dir_path, "onig-5.9.6.tar.gz")
+-onig_tarball_path = join(dependencies_dir_path, "onig-6.9.0.tar.gz")
 -onig_install_path = join(dependencies_dir_path, "onig_install")
--onig_source_path = join(dependencies_dir_path, "onig-5.9.6")
+-onig_source_path = join(dependencies_dir_path, "onig-6.9.0")
 -
 -jq_tarball_path = join(dependencies_dir_path, "jq-1.5.tar.gz")
 -jq_install_path = join(dependencies_dir_path, "jq_install")

-            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',

--- 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:
