-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
executable file
·58 lines (49 loc) · 2.07 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from Cython.Build.Dependencies import create_extension_list
from distutils.core import setup
from os.path import basename, dirname, join, splitext
import re
from support.dist import CeygenDistribution
modules = create_extension_list(['ceygen/*.pyx', 'ceygen/tests/*.pyx'])
for module in modules:
module.language = "c++"
# list of pxd files that belong to a corresponding module directly in the ceygen package
ceygen_pxds = [splitext(basename(m.sources[0]))[0] + '.pxd' for m in modules if re.match('ceygen\.[^.]*$', m.name)]
with open(join(dirname(__file__) ,'README.rst')) as file:
long_description = file.read()
setup(
packages=['ceygen', 'ceygen.tests'],
package_data={'ceygen': ceygen_pxds},
distclass=CeygenDistribution,
ext_modules=modules,
include_dirs=['/usr/include/eigen3'], # default overridable by setup.cfg
cflags=['-O2', '-march=native', '-fopenmp'], # ditto
ldflags=['-fopenmp'], # ditto
# meta-data; see http://docs.python.org/distutils/setupscript.html#additional-meta-data
name='Ceygen',
version="0.4-pre",
author='Matěj Laitl',
author_email='[email protected]',
maintainer='Matěj Laitl',
maintainer_email='[email protected]',
url='https://github.com/strohel/Ceygen',
description='Cython helper for linear algebra with typed memoryviews built atop the Eigen C++ library',
long_description=long_description,
download_url='http://pypi.python.org/pypi/Ceygen',
platforms='cross-platform',
license='MIT',
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: C++',
'Programming Language :: Cython',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Mathematics',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)