forked from PECOS-packages/PECOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
88 lines (76 loc) · 2.8 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# ========================================================================= #
# Copyright 2018 National Technology & Engineering Solutions of Sandia,
# LLC (NTESS). Under the terms of Contract DE-NA0003525 with NTESS,
# the U.S. Government retains certain rights in this software.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ========================================================================= #
"""
Setup script for PECOS.
For development install, use the following at the package root:
pip install -e .
"""
from setuptools import setup, find_packages
with open("README.md", "r") as fh:
long_description = fh.read()
exec(open('pecos/version.py').read()) # Get __version__
setup(
name='quantum-pecos',
version=__version__,
url='https://github.com/PECOS-packages/PECOS',
author='Ciarán Ryan-Anderson',
author_email='[email protected]',
description='PECOS (Performance Estimator of Codes On Surfaces) is a package designed to facilitate the evaluation '
'and study of quantum error correcting codes.',
long_description=long_description,
long_description_content_type="text/markdown",
packages=find_packages(),
python_requires=">=3.6",
install_requires=[
"numpy>=1.15.0,<2.0",
"scipy>=1.1.0,<2.0",
"matplotlib>=2.2.0,<4.0",
"networkx>=2.1.0,<3.0",
"sortedcontainers>=2.0.0,<3.0",
],
tests_require=['pytest>=3.0.0'],
extras_require={
'simulators': [
'cython',
'projectq',
],
'all': [
'quantum-pecos[simulators]',
],
},
license='Apache 2',
classifiers=[
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
)
'''
try:
import cython
# Have to have Cython already installed before running this setup file
# Otherwise, just run compile_cython as a script: python compile_cython.py
from pecos.simulators import compile_cython
compile_cython.compile()
# TODO: compile Cython directly using this setup script ... or could trigger compile at init if Cython is available
except ImportError:
pass
'''