Workaround for latest pip versions

Starting from pip 20.2 the --install-option doesn't work anymore,
and we knew it was going to stop working since a while.
Trying to work around that removing the option and just linking the
scripts to the final destination.

Change-Id: Ie24cb597ac6d64dda78284ef522418dd0ccd055f
changes/70/764370/1
Riccardo Pittau 2 years ago
parent 83d628c4e4
commit e641593971
  1. 5
      dib/ironic-python-agent-ramdisk/install.d/ironic-python-agent-ramdisk-source-install/60-ironic-python-agent-ramdisk-install

@ -42,7 +42,10 @@ fi
$VENVDIR/bin/pip install 'pip>=7.1'
# install IPA inside the virtual environment
$VENVDIR/bin/pip install -c $UPPER_CONSTRAINTS $IPADIR --install-option="--install-scripts=/usr/local/bin/"
$VENVDIR/bin/pip install -c $UPPER_CONSTRAINTS $IPADIR
ln -s $VENVDIR/bin/ironic-python-agent /usr/local/bin/
ln -s $VENVDIR/bin/ironic-collect-introspection-data /usr/local/bin/
case "$DIB_INIT_SYSTEM" in
upstart)

Loading…
Cancel
Save