Skip to content
This repository has been archived by the owner on Apr 26, 2020. It is now read-only.

Commit

Permalink
Switch to python3
Browse files Browse the repository at this point in the history
  • Loading branch information
marmarek committed May 19, 2017
1 parent cd8393d commit 737ffc0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dbus-1/services/org.qubes.DomainManager1.service
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[D-BUS Service]
Name=org.qubes.DomainManager1
Exec=/usr/bin/python /usr/lib/python2.7/site-packages/qubesdbus/domain_manager.py
Exec=/usr/bin/python3 -m qubesdbus.domain_manager
2 changes: 1 addition & 1 deletion dbus-1/services/org.qubes.Labels1.service
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[D-BUS Service]
Name=org.qubes.Labels1
Exec=/usr/bin/python /usr/lib/python2.7/site-packages/qubesdbus/labels.py
Exec=/usr/bin/python3 -m qubesdbus.labels
3 changes: 1 addition & 2 deletions qubesdbus/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ def __init__(self, bus=None, bus_name=None, bus_path=None):
_name = ''.join([NAME_PREFIX, '.', self.__class__.__name__,
str(VERSION)])
self.bus_name = dbus.service.BusName(_name, self.bus)
# avoid pylint super-on-old-class error
dbus.service.Object.__init__(self, self.bus_name, self.bus_path)
super(DbusServiceObject, self).__init__(self.bus_name, self.bus_path)


class ObjectManager(DbusServiceObject):
Expand Down
7 changes: 4 additions & 3 deletions rpm_spec/qubes-dbus.spec
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ Vendor: Invisible Things Lab
License: GPL2+
URL: http://www.qubes-os.org

Requires: python-dbus
Requires: python3-dbus
Requires: python3-systemd

%define _builddir %(pwd)

Expand All @@ -44,11 +45,11 @@ ln -sf . %{name}-%{version}
foo bar

%build
/usr/bin/python setup.py build
/usr/bin/python3 setup.py build

%install

python setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
python3 setup.py install --single-version-externally-managed -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
mkdir -p $RPM_BUILD_ROOT/usr/share
cp -r dbus-1 $RPM_BUILD_ROOT/usr/share/dbus-1

Expand Down

0 comments on commit 737ffc0

Please sign in to comment.