-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
34 lines (27 loc) · 1.21 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
import os.path
from setuptools import find_packages
from distutils.core import setup, Extension
p_source = os.path.dirname(os.path.abspath(__file__))
p_computer = os.path.join(p_source, "numsim/computer/")
with open('requirements.txt') as f:
requirements = f.read().splitlines()
module1 = Extension("numsim.computer.velocity_verlet",
sources=[os.path.join(p_computer, "velocity_verlet.cpp")],
language='c++')
data_file1 = ("examples", ["examples/celetial_body.py"])
data_file2 = ("examples/data", ["examples/data/input.csv.example",
"examples/data/sun_system.csv",
"examples/data/output.csv.example"])
setup(name = "numsim",
version = "0.0.1",
author = "Fernando Ribeiro Alves",
author_email = "[email protected]",
keywords = "numeric simulate math cfd phisic particle",
# license = "",
# description = "",
long_description = open('README.md').read(),
install_requires = requirements,
ext_modules = [module1],
packages = find_packages(),
data_files = [data_file1, data_file2]
)