-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
57 lines (47 loc) · 1.5 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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import io
import subprocess
from setuptools import find_packages, setup, Command
# Package meta-data.
NAME = 'qsw_mpi'
DESCRIPTION = 'A framework for Quantum Stochastic Walk Simulation.'
URL = 'https://github.com/Edric-Matwiejew/QSW_MPI'
EMAIL = '[email protected]'
AUTHOR = 'Edric Matwiejew'
REQUIRES_PYTHON = '>=3.6.0'
VERSION = '1.0.2'
# What packages are required for this module to be exeuted?
REQUIRED = [
'numpy', 'scipy', 'mpi4py']
# What packages are optional?
EXTRAS = {
'.qsw support':['h5py'],
'visulisation':['matplotlib', 'networkx']
}
EXTENSION = subprocess.run(
['python3-config --extension-suffix'],
shell = True,
stdout = subprocess.PIPE).stdout.decode('utf-8').strip()
here = os.path.abspath(os.path.dirname(__file__))
with io.open(os.path.join(here, 'README.rst'), encoding = 'utf-8') as f:
long_description = '\n' + f.read()
setup(
name = NAME,
version = VERSION,
description = DESCRIPTION,
long_description = long_description,
long_description_content_type = 'text/markdown',
author = AUTHOR,
author_email = EMAIL,
python_requires = REQUIRES_PYTHON,
url = URL,
packages = find_packages(exclude = ['examples/*']),
package_data = {
'qsw_mpi': ['*' + EXTENSION],
},
install_requires = REQUIRED,
extras_require = EXTRAS,
license = 'GPLv3',
)