forked from bndl/cycloudpickle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·62 lines (51 loc) · 1.53 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
55
56
57
58
59
60
61
62
#!/usr/bin/env python
import os
import re
from setuptools import setup, find_packages, Extension
extensions = [
Extension('cycloudpickle.cycloudpickle', ['cycloudpickle/cycloudpickle.pyx']),
Extension('cycloudpickle.cypickle', ['cycloudpickle/cypickle.pyx']),
]
try:
from Cython.Build import cythonize
extensions = cythonize(extensions, compiler_directives={
'language_level': 3
})
except ImportError:
pass
if __name__ == '__main__':
setup(
name='cycloudpickle',
version='0.1.0',
url='https://github.com/bndl/cycloudpickle',
description='A cython version of cloudpickle',
long_description=open('README.rst').read(),
author='Frens Jan Rumph',
author_email='[email protected]',
packages=(
find_packages()
),
include_package_data=True,
zip_safe=False,
install_requires=[
'cloudpickle>=0.2.1',
],
extras_require=dict(
dev=[
'cython<0.25',
'pytest',
'mock',
'tornado',
],
),
ext_modules=extensions,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
)