forked from myQLM/qscore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
29 lines (25 loc) · 787 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
# -*- coding: utf-8 -*-
"""
Setup for qat-qscore
"""
import importlib
from setuptools import setup, find_packages
def detect_if_qlm():
"""
Detects if this setup is run in a complete QLM environement.
If not, we will need to add myQLM to the dependencies of the package.
"""
try:
importlib.import_module("qat.linalg")
print("=> Detected a QLM installation. <=")
return True
except ModuleNotFoundError:
print("=> No QLM installation detected, adding myQLM to the dependencies. <=")
return False
setup(
name="qat-qscore",
description="QScore implementation based on Atos' qat framework.",
version="0.0.1",
packages=find_packages(include=["qat.*"]),
install_requires=[] if detect_if_qlm() else ["myqlm"],
)