setup.py always install nautilus-bzr

Bug #285320 reported by Igor Vlasenko
2
Affects Status Importance Assigned to Milestone
Bazaar GTK+ Frontends
Triaged
Medium
Unassigned

Bug Description

the code in setup.py is incorrect:
            cmd = os.popen('pkg-config --variable=pythondir nautilus-python', 'r')
            res = cmd.readline().strip()
            ret = cmd.close()
            if ret is None:
                dest = res[5:]
                files.append((dest, ['nautilus-bzr.py']))
it seems to be always true. at least res should be also tested.
оn build host there is no nautilus-python:
[builder@breeze bzr-gtk-0.95.0]$ pkg-config --variable=pythondir nautilus-python
[builder@breeze bzr-gtk-0.95.0]$ echo $?
1
but setup.py installs nautilus-bzr.py:
It causes rpm to autogenerate dependency
bzr-gtk: Depends: pythonXX(nautilus)
which is unmet dependency so the package is not installable.

Jelmer Vernooij (jelmer)
Changed in bzr-gtk:
importance: Undecided → Medium
status: New → Triaged
tags: added: nautilus setup
Jelmer Vernooij (jelmer)
tags: added: nautilus-bzr
removed: nautilus
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.