prevent emitting bogus requires restrict matching "from gi.repository import" at start of lines such as in sugar's src/jarabe/view/viewsource.py: typelib() typelib(3) typelib(=) typelib(GConf) typelib(Gtk:) typelib(Maliit) typelib(_IMPORT_TYPES) typelib({sugar3:) Index: SOURCES/gi-find-deps.sh =================================================================== --- SOURCES/gi-find-deps.sh (révision 1016718) +++ SOURCES/gi-find-deps.sh (copie de travail) @@ -60,7 +60,7 @@ } function python_requires { - for module in $(grep -h -P "from gi\.repository import (\w+)" $1 | sed -e 's:#.*::' -e 's:raise ImportError.*::' -e 's:.*"from gi.repository import .*".*::' | sed -e 's,from gi.repository import,,' -r -e 's:\s+$::g' -e 's:\s+as\s+\w+::g' -e 's:,: :g'); do + for module in $(grep -h -P "^from gi\.repository import (\w+)" $1 | sed -e 's:#.*::' -e 's:raise ImportError.*::' -e 's:.*"from gi.repository import .*".*::' | sed -e 's,from gi.repository import,,' -r -e 's:\s+$::g' -e 's:\s+as\s+\w+::g' -e 's:,: :g'); do split_name_version $module print_req_prov # Temporarly disabled... this is not true if the python code is written for python3... And there seems no real 'way' to identify this.