dh-virtualenv
dh-virtualenv copied to clipboard
Python not found
Good morning, I made a debian/rules file that uses dh-virtualenv (I followed the advice in the documentation):
export DH_VIRTUALENV_INSTALL_ROOT=/opt
%:
dh $@ --with python-virtualenv
override_dh_virtualenv:
ls -l /app/src/myteam/
dh_virtualenv --upgrade-pip \
--python python3 \
--preinstall poetry \
--preinstall poetry-dynamic-versioning \
--preinstall virtualenv \
--pip-tool dh-poetry \
--install-suffix myproject
But during execution (via gitlab ci/cd), I get the following error:
FileNotFoundError: [Errno 2] No such file or directory: '/builds/myteam/myproject/debian/myteam-service-myproject/opt/myproject/bin/python'
make[1]: *** [debian/rules:10: override_dh_virtualenv] Error 1
make[1]: Leaving directory '/builds/myteam/myproject'
make: *** [debian/rules:6: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
I will need to know what part of the process should create the virtual environment including the python program? And how can I make sure this part works well?
Thanks for your help,
Axel