forked from QCoDeS/Qcodes_contrib_drivers
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
27 lines (22 loc) · 770 Bytes
/
setup.py
File metadata and controls
27 lines (22 loc) · 770 Bytes
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
import setuptools
from setuptools import setup
from versioningit import get_cmdclasses
# this file does not contain configuration
# std configuration as defined by pep621
# is in pyproject.toml
# and setuptools specific config in setup.cfg
if int(setuptools.__version__.split(".")[0]) < 61:
raise RuntimeError(
"At least setuptools 61 is required to install qcodes-contrib-drivers from source"
)
try:
import pip
if int(pip.__version__.split(".")[0]) < 19:
raise RuntimeError("At least pip 19 is required to install qcodes-contrib-drivers from source")
except ImportError:
# we are not being executed from pip so pip version is not important
pass
if __name__ == "__main__":
setup(
cmdclass=get_cmdclasses(),
)