how to install automatically missing modules on a debian-system

H

hugocoolens

It often happens I start a python-script I wrote some time ago on another
system and get messages like "module_x is missing". I then perform an apt-cache search module_x, followed by an apt-get install name_of_missing_module.deb
I was wondering whether someone here has a kind of method which automatically
looks for the missing modules as debian-packages and offers to install them?

hugo
 
A

Anssi Saari

hugocoolens said:
It often happens I start a python-script I wrote some time ago on another
system and get messages like "module_x is missing". I then perform an apt-cache search module_x, followed by an apt-get install name_of_missing_module.deb
I was wondering whether someone here has a kind of method which automatically
looks for the missing modules as debian-packages and offers to install them?

I don't know if there's anything that works with random Python scripts.
I suppose the straightforward Debian way of it would be to package your
script in a .deb package and include the proper dependencies, then apt
would take care of installing those too.

Debian has a wiki page covering the project's Python packaging policy
and how to do it at https://wiki.debian.org/Python/Packaging.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top