mirror of https://github.com/Qiskit/qiskit-aer.git
36 lines
1.4 KiB
TOML
36 lines
1.4 KiB
TOML
[build-system]
|
|
requires = [
|
|
"setuptools",
|
|
"wheel",
|
|
"conan>=1.40.0",
|
|
"scikit-build>=0.11.0",
|
|
"cmake!=3.17.1,!=3.17.0",
|
|
"ninja",
|
|
"pybind11>2.6",
|
|
"oldest-supported-numpy; python_version>'3.7' or platform_machine=='aarch64' or platform_python_implementation=='PyPy'",
|
|
"numpy==1.16.3; python_version<='3.7' and platform_machine!='aarch64' or platform_python_implementation=='PyPy'",
|
|
]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[tool.cibuildwheel]
|
|
manylinux-x86_64-image = "manylinux2014"
|
|
manylinux-i686-image = "manylinux2014"
|
|
skip = "pp* cp36* *musllinux*"
|
|
test-skip = "cp310-win32 cp310-manylinux_i686 cp311-win32 cp311-manylinux_i686"
|
|
test-command = "python {project}/tools/verify_wheels.py"
|
|
# We need to use pre-built versions of Numpy and Scipy in the tests; they have a
|
|
# tendency to crash if they're installed from source by `pip install`, and since
|
|
# Numpy 1.22 there are no i686 wheels, so we force pip to use older ones without
|
|
# restricting any dependencies that Numpy and Scipy might have.
|
|
before-test = "pip install --only-binary=numpy,scipy numpy scipy"
|
|
|
|
[tool.cibuildwheel.linux]
|
|
before-all = "yum install -y openblas-devel"
|
|
|
|
[tool.cibuildwheel.windows]
|
|
environment = { CMAKE_GENERATOR = "Visual Studio 16 2019"}
|
|
|
|
[[tool.cibuildwheel.overrides]]
|
|
select = "cp3{7,8,9,10,11}-manylinux_i686"
|
|
before-all = "yum install -y wget && bash {project}/tools/install_openblas_i686.sh && bash {project}/tools/install_rust.sh"
|