forked from softwareQinc/staq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
32 lines (28 loc) · 917 Bytes
/
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
import sys
from setuptools import setup
from libs.pybind11.setup_helpers import Pybind11Extension
extra_compile_args = ["-Ilibs", "-Iinclude", "-Iqasmtools/include"]
# MSVC most likely
if sys.platform == "win32" and not sys.platform == "cygwin" and not sys.platform == "msys":
extra_compile_args.append("-Ilibs/pthreadwin32")
ext_modules = [
Pybind11Extension(
"pystaq",
["pystaq/staq_wrapper.cpp"],
extra_compile_args=extra_compile_args,
cxx_std=17,
include_pybind11=False,
),
]
setup(
name='pystaq',
version='2.1',
description='Python 3 wrapper for staq',
long_description=open('pystaq/README.md').read(),
long_description_content_type='text/markdown',
author='softwareQ',
author_email='[email protected]',
url='https://github.com/softwareQinc/staq',
license='MIT',
platforms=sys.platform,
ext_modules=ext_modules)