-
Notifications
You must be signed in to change notification settings - Fork 13
/
jq.py-setup.py
53 lines (47 loc) · 1.57 KB
/
jq.py-setup.py
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/env python
import os
import subprocess
import tarfile
import shutil
import sysconfig
import requests
from setuptools import setup
from setuptools.command.build_ext import build_ext
from setuptools.extension import Extension
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
jq_extension = Extension(
"jq",
sources=["jq.c"],
extra_link_args=["-lm"],
extra_objects=[
os.path.join(os.environ.get("FLATPAK_DEST"), "lib", "libjq.so"),
os.path.join(os.environ.get("FLATPAK_DEST"), "lib", "libonig.so")
],
)
setup(
name='jq',
version='1.1.3',
description='jq is a lightweight and flexible JSON processor.',
long_description=read("README.rst"),
author='Michael Williamson',
url='http://github.com/mwilliamson/jq.py',
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
license='BSD 2-Clause',
ext_modules = [jq_extension],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
)