-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathsetup.py
More file actions
24 lines (20 loc) · 682 Bytes
/
setup.py
File metadata and controls
24 lines (20 loc) · 682 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from setuptools import setup
import numpy
import os
def find_version(path):
import re
# path shall be a plain ascii text file.
s = open(path, 'rt').read()
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
s, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Version not found")
setup(
name="fastpm", version=find_version("fastpm/version.py"),
author="Yu Feng",
description="FastPM in Python",
package_dir = {'fastpm': 'fastpm'},
packages= ['fastpm', 'fastpm.force', 'fastpm.tests'],
install_requires=['cython', 'numpy', 'scipy', 'pmesh', 'nbodykit'],
)