summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-06-18 23:34:42 +0100
committerMichael Williamson <mike@zwobble.org>2013-06-18 23:34:42 +0100
commitaf6662377ce4048c2214787ee2a1104a9f33839d (patch)
treee6f86bdcd439bc3167aad14dd1f716f3f67d2b10 /setup.py
Basic bindings for jq
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..3966809
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,31 @@
+#!/usr/bin/env python
+
+import os
+from setuptools import setup
+from distutils.extension import Extension
+from Cython.Distutils import build_ext
+
+
+def read(fname):
+ return open(os.path.join(os.path.dirname(__file__), fname)).read()
+
+jq_extension = Extension(
+ "jq",
+ #sources=["_jq.c", "jq.pyx"],
+ sources=["jq.pyx"],
+ include_dirs=["../jq/"],
+ libraries=["jq"],
+ library_dirs=["../jq/"],
+)
+
+setup(
+ name='jq',
+ version='0.1.0',
+ description='jq is a lightweight and flexible command-line JSON processor.',
+ long_description=read("README"),
+ author='Michael Williamson',
+ url='http://github.com/mwilliamson/jq.py',
+ cmdclass={"build_ext": build_ext},
+ ext_modules = [jq_extension]
+)
+