-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
59 lines (54 loc) · 1.8 KB
/
setup.py
File metadata and controls
59 lines (54 loc) · 1.8 KB
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
55
56
57
58
import glob, setuptools
import sys
from distutils.core import Extension
from setuptools import setup
import subprocess
import re
sources = ['nativeextractormodule.c'] + glob.glob('./nativeextractor/src/*.c')
if sys.version_info >= (3, 0):
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
else:
with open("README.md", "r") as fh:
long_description = fh.read().decode("utf-8")
kwargs = {
"setup_requires": ['wheel'], # for future releases to support wheel by default
"name": "pynativeextractor",
"version": "1.0.15",
"author": "SpongeData s.r.o.",
"author_email": "info@spongedata.cz",
"description": "Python binding for nativeextractor",
"long_description": long_description,
"long_description_content_type": "text/markdown",
"ext_modules": [
Extension(
'pynativeextractor_c',
sources=sources,
include_dirs=[
'./nativeextractor/src',
'nativeextractor/include',
'/usr/include/glib-2.0',
'/usr/lib/x86_64-linux-gnu/glib-2.0/include'
],
# library_dirs=['build/release'],
libraries=['glib-2.0'],
extra_compile_args=['-rdynamic', '-g', '-O0'],
),
],
"url": "https://github.com/SpongeData-cz/pynativeextractor",
"project_urls": {
"Bug Tracker": "https://github.com/SpongeData-cz/pynativeextractor/issues",
},
"classifiers": [
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
],
"packages": setuptools.find_packages(),
"python_requires":">=2.7",
"install_requires": [
"wheel",
],
}
setup(**kwargs)