Hi Andreas!
* Andreas Beckmann <a...@debian.org>, 2015-07-23, 20:34:
I don't know if that would be a task for adequate,
I don't know either. :)
but we should have some automated check for perl (and python) modules
to see whether their dependencies are fulfilled.
Seeing https://bugs.debian.org/792934 reminded me about this.
Alternatively we could do something like this in piuparts.
I have no idea how to possibly implement this :-)
For perl the test would be
perl -e 'use Mod::Ule'
but how to get the proper list of modules?
dpkg -L $package | $someclevercode # :-P
I started playing with checking Python imports here:
https://github.com/jwilk/adequate-imports
Unfortunately, importing some Python modules have unwanted side effects.
For example:
"import antigravity" spawns a web browser.
"import quodlibet.commands" segfaults.
"import imdb.locale.generatepot" calls sys.exit().
"import pychecker2.VariableChecks" fails;
but "import pychecker.checker; import pychecker2.VariableChecks" starts
checking your code. oO
And there are lots of false positives where a small part of package X
requires package Y, which is not installed. :/
--
Jakub Wilk
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org