-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
37 lines (34 loc) · 996 Bytes
/
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
#!/usr/bin/env python
from numpy.distutils.core import setup
from numpy.distutils.extension import Extension
from numpy.distutils.command.build_ext import build_ext as numpy_build_ext
from Cython.Distutils import build_ext as cython_build_ext
import numpy
class build_ext(numpy_build_ext, cython_build_ext):
pass
setup(
name = "libqsnake",
# cmdclass = {'build_ext': build_ext},
version = "0.1",
packages = [
'qsnake',
'qsnake.calculators',
'qsnake.calculators.tests',
'qsnake.data',
'qsnake.mesh2d',
'qsnake.tests',
],
package_data = {
'qsnake.tests': ['phaml_data/domain.*'],
},
libraries = [('foo', {
"sources": ["qsnake/fmesh.f90"]
})],
include_dirs=[numpy.get_include()],
ext_modules = [Extension("qsnake.cmesh",
sources=[
"qsnake/cmesh.c",
], libraries=['foo'])],
description = "Qsnake standard library",
license = "BSD",
)