-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathsetup.py
More file actions
31 lines (27 loc) · 901 Bytes
/
Copy pathsetup.py
File metadata and controls
31 lines (27 loc) · 901 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
from setuptools import setup, Extension
import glob
_DEBUG = True
_DEBUG_LEVEL = 1
_UICAL_LOG_LEVEL = 5
extra_compile_args = ["-std=c++11", "-Wall", "-Wextra", "-Wno-missing-field-initializers"]
if _DEBUG:
extra_compile_args += ["-g3", "-O0", f"-DDEBUG={_DEBUG_LEVEL}", "-UNDEBUG", f"-DUICAL_LOG_LEVEL={_UICAL_LOG_LEVEL}"]
else:
extra_compile_args += ["-DNDEBUG", "-O3"]
uical = Extension(
'uICAL',
language='c++',
include_dirs=['./python-module', './src'],
sources=glob.glob('./python-module/*.cpp') + glob.glob('./src/*.cpp'),
extra_compile_args=extra_compile_args,
)
setup(
name='uICAL',
version='0.0.6',
description='Light weight ICAL library',
author='Source Simian',
author_email='source.simian@gmail.com',
url='https://github.com/sourcesimian/uical',
long_description='This is really just a demo package.',
ext_modules=[uical],
)