mirror of https://github.com/Qiskit/qiskit.git
Install setuptools and wheel to cache locally built wheels (#4346)
This commit updates the ci configuration to ensure that we have wheel (and setuptools) installed and at the latest version. Right now in the azure jobs we cache dependencies but it's not caching locally constructed wheels from installation. This means the effect of the cache is minimized to just the wire time to download artifacts from pypi, To improve the effect of the cache this installs the necessary requirements to enable pip to build wheels locally when an sdist package is used. When that happens it will start caching the wheels and saving us from building from source on every run. Co-authored-by: Julien Gacon <jules.gacon@googlemail.com>
This commit is contained in:
parent
e343eda529
commit
b41891aaff
|
@ -147,7 +147,7 @@ stages:
|
|||
displayName: Cache pip
|
||||
- bash: |
|
||||
set -e
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install --upgrade pip setuptools wheel
|
||||
pip install -U -r requirements.txt -r requirements-dev.txt -c constraints.txt
|
||||
pip install -c constraints.txt -e .
|
||||
pip install "qiskit-ibmq-provider" "qiskit-aer" "z3-solver" -c constraints.txt
|
||||
|
@ -208,7 +208,7 @@ stages:
|
|||
displayName: Cache pip
|
||||
- bash: |
|
||||
set -e
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install --upgrade pip setuptools wheel
|
||||
pip install -U -r requirements.txt -r requirements-dev.txt -c constraints.txt
|
||||
pip install -c constraints.txt -e .
|
||||
pip install "qiskit-ibmq-provider" "qiskit-aer" -c constraints.txt
|
||||
|
@ -244,7 +244,7 @@ stages:
|
|||
displayName: Cache pip
|
||||
- bash: |
|
||||
set -e
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install --upgrade pip setuptools wheel
|
||||
pip install -U tox
|
||||
python setup.py build_ext --inplace
|
||||
sudo apt install -y graphviz
|
||||
|
@ -289,7 +289,7 @@ stages:
|
|||
displayName: Cache pip
|
||||
- bash: |
|
||||
set -e
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install --upgrade pip setuptools wheel
|
||||
pip install -U -r requirements.txt -r requirements-dev.txt -c constraints.txt
|
||||
pip install -c constraints.txt -e .
|
||||
pip install "qiskit-ibmq-provider" "qiskit-aer" -c constraints.txt
|
||||
|
@ -359,7 +359,7 @@ stages:
|
|||
displayName: Cache pip
|
||||
- bash: |
|
||||
set -e
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install --upgrade pip setuptools wheel
|
||||
pip install -U -r requirements.txt -r requirements-dev.txt -c constraints.txt
|
||||
pip install -c constraints.txt -e .
|
||||
pip install "qiskit-ibmq-provider" "qiskit-aer" "z3-solver" -c constraints.txt
|
||||
|
@ -424,7 +424,7 @@ stages:
|
|||
displayName: Cache pip
|
||||
- bash: |
|
||||
set -e
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install --upgrade pip setuptools wheel
|
||||
pip install -U -r requirements.txt -r requirements-dev.txt -c constraints.txt
|
||||
pip install -c constraints.txt -e .
|
||||
pip install "qiskit-ibmq-provider" "qiskit-aer" "z3-solver" -c constraints.txt
|
||||
|
@ -490,7 +490,7 @@ stages:
|
|||
displayName: Cache pip
|
||||
- bash: |
|
||||
set -e
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install --upgrade pip setuptools wheel
|
||||
pip install -U -r requirements.txt -r requirements-dev.txt -c constraints.txt
|
||||
pip install -c constraints.txt -e .
|
||||
pip install "qiskit-ibmq-provider" "qiskit-aer" -c constraints.txt
|
||||
|
|
Loading…
Reference in New Issue