-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
70 lines (59 loc) · 2.16 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
63
64
65
66
67
68
69
70
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
# IMPORTANT: this package *requires* Sage, so should be installed using sage -python
# See the Makefile for an example command
import os
SAGE_ROOT=os.environ["SAGE_ROOT"]
include_dirs=[
SAGE_ROOT+'/local/include/csage/',
SAGE_ROOT+'/local/include/',
SAGE_ROOT+'/devel/sage/',
]
setup(
# I'm not sure exactly what the following should be
# I should probably look this up in some distutils guide or something
#name = "minrank",
#description
#version = "1.0",
#author = "Jason Grout and others",
#author_email = "[email protected]",
#url = "github...";,
#description = "Minimum Rank",
#packages=["minimum_rank"],
#package_dir={"minimum_rank":"src"},
# classifiers=[
# 'Development Status :: 4 - Beta',
# 'Environment :: X11 Applications :: GTK',
# 'Intended Audience :: End Users/Desktop',
# 'Intended Audience :: Developers',
# 'License :: OSI Approved :: GNU General Public License (GPL)',
# 'Operating System :: POSIX :: Linux',
# 'Programming Language :: Python',
# 'Topic :: Desktop Environment',
# 'Topic :: Text Processing :: Fonts'
# ]
ext_modules = [
Extension(
"zero_forcing_wavefront", # name of extension
["zero_forcing_wavefront.pyx"], # filename of Cython source
include_dirs=include_dirs,
),
Extension(
"zero_forcing_64", # name of extension
["zero_forcing_64.pyx"], # filename of Cython source
include_dirs=include_dirs,
),
Extension(
"Zq_c", # name of extension
["Zq_c.pyx"], # filename of Cython source
include_dirs=include_dirs,
),
# Extra options that could be specified in an extension tuple
#language="c++", # this causes Cython to create C++ source
#libraries=["stdc++", ...], # ditto
#extra_link_args=[...], # if needed
],
# Standard stuff
cmdclass = {'build_ext': build_ext},
)