-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
50 lines (42 loc) · 1.31 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
from setuptools import setup
from setuptools.extension import Extension
import os, sys
class SetupOptions(dict):
def add(self, **kwargs):
self.update(kwargs)
opts = SetupOptions()
opts.add(
name='cymove',
version='1.0.2',
author='Omer Ozarslan',
url='https://github.com/ozars/cymove',
description='std::move wrapper for cython',
long_description=open('README.md').read(),
long_description_content_type='text/markdown',
license='MIT',
packages=['cymove'],
include_package_data=True,
package_data={'': ['LICENSE', 'README.md', 'cymove/__init__.pxd']},
zip_safe=False,
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: MacOS',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Programming Language :: C++',
'Programming Language :: Cython',
]
)
include_tests = len(sys.argv) >= 2 and sys.argv[1] == 'test'
if include_tests:
extensions = [
Extension('cymove_test', ['cymove/cymove_test.pyx'],
language='c++', extra_compile_args=['-std=c++11'])
]
opts.add(
setup_requires = ['cython'],
test_suite = 'cymove_test',
ext_modules = extensions,
)
setup(**opts)