Ignore explicitly relative 'from' imports when scanning for dependencies
===== SRU Justification =====
This causes a bad bug in Quickly (bug 775217). Basically, "quickly package" shows errors and suggests to the user that continuing is not safe. It is a bad user experience and a regression from past releases.
I wrote this patch here during natty's development to fix it, but it didn't make it in.
The attached debdiff will backport the upstream commit to natty's version of python-
1) cd /tmp
2) quickly create ubuntu-application test-project
3) cd test-project
4) quickly package
What you see:
Command returned some ERRORS:
ERROR: Python module test_projectconfig not found
ERROR: Python module Builder not found
ERROR: Python module helpers not found
ERROR: Python module preferences not found
ERROR: Python module Window not found
Do you want to continue (this is not safe!)? y/[n]:
What you should see:
"""Ubuntu package has been successfully created in ../test-
Submodules of a program may use relative imports. These should not be treated as dependency-
So when scanning, we should ignore explicitly defined relative 'from' imports (they look like "from . sibling import foo" or "from .. uncle import bar").