-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
54 lines (48 loc) · 1.72 KB
/
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
53
54
#!/usr/bin/env python3
# encoding: utf-8
from io import open
from os import path
from platform import system
from setuptools import setup, Extension
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
extra_compile_args = []
extra_link_args = []
if system() == 'Linux':
extra_compile_args = ['-Wl,-Bsymbolic-functions']
extra_link_args = ['-Wl,-Bsymbolic-functions']
chompjs_extension = Extension(
'_chompjs',
sources=['_chompjs/module.c', '_chompjs/parser.c', '_chompjs/buffer.c'],
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args,
)
setup(
name='chompjs',
version='1.3.0',
description='Parsing JavaScript objects into Python dictionaries',
author='Mariusz Obajtek',
author_email='[email protected]',
keywords='parsing parser JavaScript json json5 webscrapping',
python_requires='>=3',
ext_modules=[chompjs_extension],
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: JavaScript",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: General",
"Topic :: Text Processing :: Linguistic",
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Web Environment",
],
url='https://github.com/Nykakin/chompjs',
long_description=long_description,
long_description_content_type='text/markdown',
include_package_data=True,
packages=['chompjs'],
)