Skip to content

Commit f52307f

Browse files
authored
Merge pull request #20 from keith/ks/custom-interpreter
Fix python2 interpreter
2 parents 4018845 + 41b18a2 commit f52307f

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

xctestrunner/BUILD

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,33 @@ package(default_visibility = ["//visibility:public"])
33
load("@subpar//:subpar.bzl", "par_binary")
44

55
py_library(
6-
name = 'shared',
7-
srcs = glob(['shared/*.py']),
6+
name = "shared",
7+
srcs = glob(["shared/*.py"]),
88
)
99

1010
py_library(
11-
name = 'simulator',
12-
srcs = glob(['simulator_control/*.py']),
11+
name = "simulator",
12+
srcs = glob(["simulator_control/*.py"]),
1313
deps = [
14-
':shared',
14+
":shared",
1515
],
1616
)
1717

1818
par_binary(
19-
name = 'ios_test_runner',
19+
name = "ios_test_runner",
2020
srcs = glob(
21-
['test_runner/*.py'],
22-
exclude = ['test_runner/TestProject/**']
21+
["test_runner/*.py"],
22+
exclude = ["test_runner/TestProject/**"],
2323
),
24-
main = 'test_runner/ios_test_runner.py',
24+
compiler_args = [
25+
"--interpreter",
26+
"/usr/bin/python2.7",
27+
],
28+
data = glob(["test_runner/TestProject/**"]),
29+
main = "test_runner/ios_test_runner.py",
30+
python_version = "PY2",
2531
deps = [
26-
':shared',
27-
':simulator',
32+
":shared",
33+
":simulator",
2834
],
29-
data = glob(['test_runner/TestProject/**']),
3035
)

0 commit comments

Comments
 (0)