blob: 55971a311c09e23fffe5d0911ecf5b88f72df1d7 [file] [log] [blame]
Nan Zhangced27512017-06-19 18:01:34 -07001// Copyright 2017 Google Inc. All rights reserved.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15python_library_host {
16 name: "py2-stdlib",
17 is_internal: true,
18 pkg_path: "stdlib",
19 srcs: [
20 "*.py",
21 "compiler/**/*.py",
22 "email/**/*.py",
23 "encodings/**/*.py",
24 "hotshot/**/*.py",
25 "importlib/**/*.py",
26 "json/**/*.py",
27 "logging/**/*.py",
28 "multiprocessing/**/*.py",
29 "pydoc_data/**/*.py",
30 "unittest/**/*.py",
31 "wsgiref/**/*.py",
32 "xml/**/*.py",
33 ],
34 // TODO(nanzhang): make exclude_srcs support globs.
35 exclude_srcs: [
36 "__phello__.foo.py",
37 ],
38 version: {
39 py2: {
40 enabled: true,
41 },
42 py3: {
43 enabled: false,
44 },
45 },
46 target: {
47 darwin: {
48 enabled: false,
49 },
50 linux_x86_64: {
51 srcs: [
52 ":py2-plat-linux2",
53 ],
54 },
55 },
56}
57
58filegroup {
59 name: "py2-plat-linux2",
60 srcs: [
61 "plat-linux2/*.py",
62 ],
63 path: "plat-linux2",
64}