forked from pyccel/caid
/
setup.py
65 lines (59 loc) · 2.01 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
# -*- coding: UTF-8 -*-
#! /usr/bin/python
import sys
from numpy.distutils.core import setup
from numpy.distutils.core import Extension
NAME = 'caid'
VERSION = '0.2'
AUTHOR = 'Ahmed Ratnani'
EMAIL = 'ratnaniahmed@gmail.com'
URL = 'http://www.ratnani.org/caid/'
DESCR = 'Computer Aided Isogeometric Design.'
KEYWORDS = ['CAD', 'FEM', 'IGA', 'OpenGL']
LICENSE = "LICENSE.txt"
setup_args = dict(
name = NAME,
version = VERSION,
description = DESCR,
long_description = open('README.md').read(),
author = AUTHOR,
author_email = EMAIL,
license = LICENSE,
keywords = KEYWORDS,
url = URL,
# download_url = URL+'/get/default.tar.gz',
)
packages=[ 'caid' \
, 'caid.graphics' \
, 'caid.numbering' \
, 'caid.utils' \
, 'caid.core' \
]
package_dir={ 'caid': 'caid'\
,'caid.quadrangles': 'caid/quadrangles' \
,'caid.graphics': 'caid/graphics' \
,'caid.numbering': 'caid/numbering' \
,'caid.utils': 'caid/utils' \
,'caid.core': 'caid/core' \
,}
ext_modules = [ \
# ... bsplines extension
Extension('caid.core.bspline', \
sources = ['caid/core/bspline.pyf', \
'caid/core/bspline.F90'], \
f2py_options = ['--quiet'], \
define_macros = [ \
#('F2PY_REPORT_ATEXIT', 0),
('F2PY_REPORT_ON_ARRAY_COPY', 0)] \
) \
# ...
,]
def setup_package():
if 'setuptools' in sys.modules:
setup_args['install_requires'] = ['numpy']
setup( packages = packages \
, package_dir=package_dir \
, ext_modules=ext_modules \
, **setup_args)
if __name__ == "__main__":
setup_package()