forked from hwangjt/GeoMACH
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
82 lines (75 loc) · 3.06 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
71
72
73
74
75
76
77
78
79
80
81
82
import setuptools
from numpy.distutils.core import setup
from numpy.distutils.misc_util import Configuration
PUBSsources = [
'src/PUBS/bspline/basis.f90',
'src/PUBS/bspline/knotopen.f90',
'src/PUBS/bspline/paramuni.f90',
'src/PUBS/tensor/curve.f90',
'src/PUBS/tensor/surface.f90',
'src/PUBS/patchwork/initializeTopology.f90',
'src/PUBS/patchwork/initializeBsplines.f90',
'src/PUBS/patchwork/initializePoints.f90',
'src/PUBS/patchwork/computeIndices.f90',
'src/PUBS/patchwork/computeKnots.f90',
'src/PUBS/patchwork/computeParameters.f90',
'src/PUBS/patchwork/computeJacobian.f90',
'src/PUBS/patchwork/computeDOFmapping.f90',
'src/PUBS/patchwork/evaluatePoints.f90',
'src/PUBS/patchwork/evaluateProjections.f90',
'src/PUBS/patchwork/getSurface.f90',
]
PAMsources = [
'src/PAM/layout/importEdges.f90',
'src/PAM/layout/computeIntersections.f90',
'src/PAM/layout/deleteDuplicates.f90',
'src/PAM/layout/addConnectors.f90',
'src/PAM/layout/computePolygons.f90',
'src/PAM/layout/splitPolygons.f90',
'src/PAM/layout/extractSurface.f90',
'src/PAM/component/component.f90',
'src/PAM/component/parameter.f90',
'src/PAM/component/primitive/computeAngles.f90',
'src/PAM/component/primitive/computeRotations.f90',
'src/PAM/component/primitive/computeSections.f90',
'src/PAM/component/primitive/computeShape.f90',
'src/PAM/component/interpolant/computeCone.f90',
'src/PAM/component/interpolant/computeJunction.f90',
'src/PAM/component/interpolant/coonsPatch.f90',
'src/PAM/component/interpolant/interpolateGrid.f90',
'src/PAM/component/structures/computeInternalStructure.f90',
'src/PAM/component/structures/shapeTypes.f90',
]
entry_points = """
[openmdao.parametric_geometry]
GeoMACH.PAM.configurations.conventional.Conventional = GeoMACH.PAM.configurations.conventional:Conventional
[openmdao.binpub]
GeoMACH.PAM.configurations.configuration.GeoMACHSender = GeoMACH.PAM.configurations.configuration:GeoMACHSender
"""
config = Configuration(name='GeoMACH')
config.add_extension('PUBS.PUBSlib', sources=PUBSsources)
config.add_extension('PAM.PAMlib', sources=PAMsources)
kwds = {'install_requires':['numpy','scipy'],
'version': '0.1',
'zip_safe': False,
'license': 'LGPL',
'include_package_data': True,
'package_dir': {'': '.'},
'packages': setuptools.find_packages('.'),
'package_data': {
'GeoMACH': [
'sphinx_build/html/*.html',
'sphinx_build/html/*.js',
'sphinx_build/html/*.inv',
'sphinx_build/html/_static/*',
'sphinx_build/html/_sources/*.txt',
'sphinx_build/html/_modules/index.html',
'sphinx_build/html/_modules/GeoMACH/PAM/components/*.html',
'sphinx_build/html/_modules/GeoMACH/PAM/configurations/*.html',
'sphinx_build/html/_modules/GeoMACH/PUBS/*.html',
]
},
'entry_points': entry_points
}
kwds.update(config.todict())
setup(**kwds)