on xenial help sign in
install python autopilot tests using a real python installation (needed if we transition from one python version to another)
commitf684183d5c36d9eea4c1b4a78f91342f0d6c2a82 authorDidier Roche <didrocks@ubuntu.com> dateWed 26 Jun 2013, 11:01 (13 years ago) parent4c4b70e
4 files changed+28−2
debian/control+3 debian/rules+11−1 debian/unity8-autopilot.install+1−1 tests/autopilot/setup.py+13
debian/control+3
@@ -15,6 +15,8 @@ Build-Depends: cmake,
1515 libxcb1-dev,
1616 pkg-config,
1717 python3,
18+ python (>= 2.7),
19+ python-setuptools,
1820 qt5-default,
1921 qtbase5-dev,
2022 qtbase5-private-dev,
@@ -70,6 +72,7 @@ Replaces: qml-phone-shell-autopilot (<< 7.80~)
7072Breaks: qml-phone-shell-autopilot (<< 7.80~)
7173Depends: ${misc:Depends},
7274 ${shlibs:Depends},
75+ ${python:Depends},
7376 libautopilot-qt,
7477 libqt5test5,
7578 libqt5widgets5,
debian/rules+11−1
@@ -7,7 +7,17 @@ export DPKG_GENSYMBOLS_CHECK_LEVEL=4
77export NO_PNG_PKG_MANGLE=1
88
99%:
10− dh $@ --parallel --fail-missing
10+ dh $@ --parallel --fail-missing --with python2
1111
1212override_dh_shlibdeps:
1313 dh_shlibdeps -XlibMockLightDM-qml.so
14+
15+override_dh_install:
16+ # install autopilot tests
17+ cd tests/autopilot; \
18+ set -ex; for python in $(shell pyversions -r); do \
19+ $$python setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \
20+ done; \
21+ cd $(CURDIR)
22+ dh_install -X'*.pyc' --fail-missing
23+
debian/unity8-autopilot.install+1−1
@@ -1 +1 @@
1−tests/autopilot/unity8 usr/lib/python2.7/dist-packages/unity8
1+usr/lib/python*/*/unity*
tests/autopilot/setup.pynew file+13
@@ -0,0 +1,13 @@
1+#!/usr/bin/python
2+
3+from distutils.core import setup
4+from setuptools import find_packages
5+
6+setup(
7+ name='unity',
8+ version='8.0',
9+ description='Unity 8 autopilot tests.',
10+ url='https://launchpad.net/unity',
11+ license='GPLv3',
12+ packages=find_packages(),
13+)