-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
44 lines (36 loc) · 1.38 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
import os
import subprocess
from setuptools import setup, Command
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
class CreateTables(Command):
description = 'Generate look-up tables'
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
print("Generating quadrature rules...")
subprocess.call("python make_quadrature.py", shell=True, cwd="pfe/quadrature")
print("Generating look-up tables for basis functions...")
subprocess.call("python make_basis.py", shell=True, cwd="pfe/shape")
setup(
name = "pfe",
version = "0.1.0",
author = "Gwénaël Gabard",
author_email = "[email protected]",
description = ("Python Finite Elements"),
license = "MIT",
keywords = "finite element, numerical simulation, computational modelling",
url = "https://github.com/GwenaelGabard/pfe",
packages=['pfe', 'pfe.geometry', 'pfe.shape', 'pfe.quadrature', 'pfe.algebra', 'pfe.interpolation', 'pfe.models'],
long_description=read('README.md'),
classifiers=[
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
],
cmdclass={'create_tables': CreateTables,},
)