im still struggling with packaging a python app
The goal is to create a .deb of an python app with a builtin venv. im using virtualenv building with : dh $@ --with python-virtualenv --builtin-venv --python /usr/local/bin/python3
first, i built a python app, everythings works fine, i created the .deb with :
Code: Select all
debuild -us -uc -b
But even if all binaries are in the directory of the virtualenv :
Code: Select all
/opt/venvs/package/bin
Code: Select all
#ls
activate activate.fish connexion easy_install-3.9 jsonschema pip pip3.7 python python3.9 activate.csh Activate.ps1 easy_install flask gunicorn normalizer pip3 pip3.9 python3 wheel
No modules is recognized inside the venv...
Code: Select all
Traceback (most recent call last):
File "/opt/venvs/package/bin/pip", line 5, in <module>
from pip._internal.cli.main import main
ModuleNotFoundError: No module named 'pip'
br,
N!