From b55b8d183be23c5a14f58e74a5b9c4c7a9a95002 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Wed, 5 Feb 2025 13:15:00 +0000 Subject: [PATCH] ci: fix "regtest" task failing due to pip weirdness pip was failing to install "electrum_aionostr>=0.0.7". This was when using "python3-pip" from ubuntu 22.04 apt. ``` Discarding https://files.pythonhosted.org/packages/91/8b/95a16d58c8d02c6f8919fd41895c65312179d66abad5d70e9800c942ac61/electrum_aionostr-0.0.7.tar.gz#sha256=e0b45d608977891c3bb4f6a4dee9a4e843fa661ceca31f81e7b992e65117070a (from https://pypi.org/simple/electrum-aionostr/) (requires-python:>=3.8): Requested unknown from https://files.pythonhosted.org/packages/91/8b/95a16d58c8d02c6f8919fd41895c65312179d66abad5d70e9800c942ac61/electrum_aionostr-0.0.7.tar.gz#sha256=e0b45d608977891c3bb4f6a4dee9a4e843fa661ceca31f81e7b992e65117070a (from Electrum==4.5.8) has inconsistent name: filename has 'electrum-aionostr', but metadata has 'unknown' ``` Updating to newer pip directly using pip seems to fix this: ``` $ python3 -m pip install --user --upgrade pip Requirement already satisfied: pip in /usr/lib/python3/dist-packages (22.0.2) Collecting pip Downloading pip-25.0-py3-none-any.whl (1.8 MB) ``` --- .cirrus.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 103c4cb00..52758e863 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -107,11 +107,12 @@ task: install_script: - apt-get update - apt-get -y install curl jq bc + - python3 -m pip install --user --upgrade pip # install electrum - export ELECTRUM_ECC_DONT_COMPILE=1 # we build manually to make caching it easier - - pip3 install .[tests] + - python3 -m pip install .[tests] # install e-x some commits after 1.16.0 tag - - pip3 install git+https://github.com/spesmilo/electrumx.git@4e66804dc0d668cd6bd4602b547e2f5b2e227e97 + - python3 -m pip install git+https://github.com/spesmilo/electrumx.git@4e66804dc0d668cd6bd4602b547e2f5b2e227e97 - "BITCOIND_VERSION=$(curl https://bitcoincore.org/en/download/ | grep -E -i --only-matching 'Latest version: [0-9\\.]+' | grep -E --only-matching '[0-9\\.]+')" - BITCOIND_FILENAME=bitcoin-$BITCOIND_VERSION-x86_64-linux-gnu.tar.gz - BITCOIND_PATH=/tmp/bitcoind/$BITCOIND_FILENAME