-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
51 lines (45 loc) · 1.32 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
# -*- coding: utf-8 -*-
"""
"""
from Cython.Build import cythonize
from setuptools import setup, find_packages
from setuptools.extension import Extension
import sys
if sys.version_info < (3, 5):
print("I'm only for 3, please upgrade")
sys.exit(1)
ext = [
Extension(
'pymaillib.imap.pyimapparser',
["./pymaillib/imap/pyimapparser.pyx"],
include_dirs=['./pymaillib/imap', '.'],
language="c++",
extra_compile_args=['-g', '-std=c++11']
),
Extension(
'pymaillib.imap.dovecot_utils',
['dovecot_utils.pyx'],
include_dirs=['.', './dovecot_utils/'],
define_macros=[('HAVE_UINTMAX_T', True), ('HAVE_UINT_FAST32_T', True)],
extra_objects=['./dovecot_utils/build/libdovecot_utils.a'],
)
]
setup(
name='pymaillib',
version='0.1',
packages=find_packages(exclude=["tests"]),
url='',
license='WTFPL ',
author='pussbb',
author_email='[email protected]',
description='helper wrapper for imaplib',
platforms=['linux-x86_64'],
classifiers=[
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
test_suite="tests",
install_requires=['python-dateutil'],
ext_modules=cythonize(ext, force=True, language_level=3),
)