summaryrefslogtreecommitdiff
path: root/setup.py
blob: 874b9a6c9b999096033f9507d0425dfebc09ff29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env python

import os
from setuptools import setup
from distutils.extension import Extension


def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()

jq_extension = Extension(
    "jq",
    sources=["jq.c"],
    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',
    ext_modules = [jq_extension]
)