-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
41 lines (37 loc) · 966 Bytes
/
setup.py
File metadata and controls
41 lines (37 loc) · 966 Bytes
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
from distutils.core import setup, Extension
MAJOR = 0
MINOR = 2
MICRO = 0
VERSION = '{}.{}.{}'.format(MAJOR, MINOR, MICRO)
with open('README.md', 'r') as f:
long_description = f.read()
module_asyncloader = Extension(
'AsyncLoader',
sources = [
'csrc/asyncmodule/asyncmodule.c',
'csrc/async/async.c',
'csrc/utils/alloc.c',
'csrc/utils/sort.c',
],
extra_link_args = [
'-lpthread',
'-luring',
'-lrt',
],
extra_compile_args = [
'-g',
],
undef_macros = [
"NDEBUG"
],
)
setup(name = 'Async File Loader',
version = VERSION,
description = 'Python asynchronous file loader module',
long_description = long_description,
long_description_content_type = 'text/markdown',
platforms = "any",
author = 'Gus Waldspurger',
author_email = '[email protected]',
license = 'MIT',
ext_modules = [module_asyncloader])