-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
45 lines (40 loc) · 1.41 KB
/
setup.py
File metadata and controls
45 lines (40 loc) · 1.41 KB
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
from setuptools import setup,Extension
from Cython.Distutils import build_ext
from Cython.Build import cythonize
import numpy as np
import update_version
long,short = update_version.get_git_version()
version = short
'''
To compile the cython plugin, run this command:
python compile.py build_ext --inplace
'''
ext_modules = [
Extension('*',
[ 'typySim/core/cy/*.pyx' ],
include_dirs=[np.get_include()],
extra_compile_args=['-fopenmp'],
extra_link_args=['-fopenmp']),
Extension('*',
[ 'typySim/compute/cy/*.pyx' ],
include_dirs=[np.get_include()],
extra_compile_args=['-fopenmp','-Wno-maybe-uninitialized'],
extra_link_args=['-fopenmp','-Wno-maybe-uninitialized']),
Extension('*',
[ 'typySim/potential/cy/*.pyx' ],
include_dirs=[np.get_include()],
extra_compile_args=['-fopenmp'],
extra_link_args=['-fopenmp']),
]
setup(
name='typySim',
ext_modules= cythonize(ext_modules,language='c++'),
description='Python based molecular simulation engine',
author='Tyler B. Martin',
author_email = 'tyler.martin@nist.gov',
version=version,
packages=['typySim'],
# scripts=['bin/typyViewer'],
license='LICENSE.txt',
long_description=open('README.md').read(),
)