8000 Annotate with python_version on py_library · bazel-contrib/rules_python@4c29f7b · GitHub
[go: up one dir, main page]

Skip to content

Commit 4c29f7b

Browse files
committed
Annotate with python_version on py_library
1 parent 06e1da8 commit 4c29f7b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packaging/whl.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ def main():
149149
name = "pkg",
150150
srcs = glob(["**/*.py"]),
151151
data = glob(["**/*"], exclude=["**/*.py", "**/* *", "BUILD", "WORKSPACE"]),
152+
python_version = "PY3",
152153
# This makes this directory a top-level in the python import
153154
# search path for anything that depends on this.
154155
imports = ["."],
@@ -163,6 +164,7 @@ def main():
163164
extras='\n\n'.join([
164165
"""py_library(
165166
name = "{extra}",
167+
python_version = "PY3",
166168
deps = [
167169
":pkg",{deps}
168170
],

0 commit comments

Comments
 (0)
0