** Description changed:
+ ===== 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-distutils-extra. I've uploaded it to natty-proposed
+ as well.
+
+ To reproduce:
+ 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-project_0.1_all.deb"""
+
+ =============================
+
Submodules of a program may use relative imports. These should not be
treated as dependency-generating imports that cause either printed
errors if they're not defined or bogus dependencies.
So when scanning, we should ignore explicitly defined relative 'from'
imports (they look like "from . sibling import foo" or "from .. uncle
import bar").
Branch coming.
** Also affects: python-distutils-extra (Ubuntu Natty)
Importance: Undecided
Status: New
** Patch added: "p-d-e.debdiff"
https://bugs.launchpad.net/ubuntu/+source/python-distutils-extra/+bug/746565/+attachment/2136659/+files/p-d-e.debdiff
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/746565
Title:
Ignore explicitly relative 'from' imports when scanning for
dependencies
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs