-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
43 lines (34 loc) · 1.13 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
from setuptools import setup, Extension, find_packages
from glob import glob
import numpy
import os
project_root = os.path.dirname(__file__)
setup(
name='pypropagate',
version='1.2.5',
description='A python based paraxial wave propagation framework',
author='Lars Melchior',
author_email='lars.melchior@gmail.com',
packages=find_packages(exclude=['tests*']),
install_requires=[
'matplotlib',
'numpy',
'scipy',
'expresso[pycas]'
],
zip_safe=False,
classifiers=[
'Programming Language :: Python :: 2.7'
],
ext_modules=[
Extension('_pypropagate',
sources = ['source/finite_difference.cpp','source/python.cpp'],
include_dirs=['libs/lars/include', 'libs/lars/modules/NDArray/include',numpy.get_include()],
libraries=['boost_python'],
library_dirs=['/'],
extra_compile_args=['-g','-std=c++11','-Wno-unknown-pragmas','-Wno-unused-local-typedef','-ffast-math','-O3']
),
],
test_suite='nose.collector',
tests_require=['nose','scipy'],
)