-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
33 lines (28 loc) · 1.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
from skbuild import setup
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
with open("CMakeLists.txt",'r') as fil:
lines = fil.readlines()
for line in lines:
if line.startswith("project(EQUILIBRATE"):
version = line.split('"')[1]
break
setup(
name="equilibrate",
packages=['equilibrate'],
python_requires='>=3.6',
version=version,
license="GNU General Public License v3.0",
install_requires=['numpy'],
author='Nicholas Wogan',
author_email = '[email protected]',
description = "A chemical equilibrium solver.",
long_description=long_description,
long_description_content_type='text/markdown',
url = "https://github.com/Nicholaswogan/Equilibrate",
cmake_args=['-DCMAKE_BUILD_TYPE=Release',\
'-DBUILD_PYTHON_EQUILIBRATE=ON',\
'-DBUILD_EXECUTABLES=OFF']
)