Ignore .pyc object files
This commit is contained in:
parent
fe0fd3fdb1
commit
23840cba8e
1 changed files with 16 additions and 4 deletions
|
@ -163,14 +163,26 @@ def py_project(name=None,
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
lib_srcs = lib_srcs or native.glob(["src/python/**/*.py"])
|
lib_srcs = lib_srcs or native.glob(["src/python/**/*.py"],
|
||||||
|
exclude=[
|
||||||
|
"**/*.pyc",
|
||||||
|
])
|
||||||
lib_data = lib_data or native.glob(["src/resources/**/*",
|
lib_data = lib_data or native.glob(["src/resources/**/*",
|
||||||
"src/python/**/*"],
|
"src/python/**/*"],
|
||||||
exclude=["**/*.py"])
|
exclude=[
|
||||||
test_srcs = test_srcs or native.glob(["test/python/**/*.py"])
|
"**/*.py",
|
||||||
|
"**/*.pyc",
|
||||||
|
])
|
||||||
|
test_srcs = test_srcs or native.glob(["test/python/**/*.py"],
|
||||||
|
exclude=[
|
||||||
|
"**/*.pyc",
|
||||||
|
])
|
||||||
test_data = test_data or native.glob(["test/resources/**/*",
|
test_data = test_data or native.glob(["test/resources/**/*",
|
||||||
"test/python/**/*"],
|
"test/python/**/*"],
|
||||||
exclude=["**/*.py"])
|
exclude=[
|
||||||
|
"**/*.py",
|
||||||
|
"**/*.pyc",
|
||||||
|
])
|
||||||
|
|
||||||
py_library(
|
py_library(
|
||||||
name=name,
|
name=name,
|
||||||
|
|
Loading…
Reference in a new issue