Use pip install-option to specify ipa install location

Change-Id: I7d054442fa2e1595a8d44fa797f078ecf42e31ce
changes/57/684757/1
Riccardo Pittau 3 years ago
parent 3195471e80
commit e97643d636
  1. 7
      dib/ironic-python-agent-ramdisk/install.d/ironic-python-agent-ramdisk-source-install/60-ironic-python-agent-ramdisk-install

@ -20,12 +20,7 @@ virtualenv $VENVDIR
$VENVDIR/bin/pip install pip --upgrade
# install IPA inside the virtual environment
$VENVDIR/bin/pip install -c $IPADIR/upper-constraints.txt $IPADIR
# FIXME(lucasagomes): Figure out how we can use the "--install-option"
# parameter for pip install so we don't have to manually create a symlink
# create the launcher link so services can use it
ln -s $VENVDIR/bin/ironic-python-agent /usr/local/bin/ironic-python-agent
$VENVDIR/bin/pip install -c $IPADIR/upper-constraints.txt $IPADIR --install-option="--install-scripts=/usr/local/bin/"
case "$DIB_INIT_SYSTEM" in
upstart)

Loading…
Cancel
Save