blob: 4fb6372b3993af631b89a7c5d93c786b6f0c3f03 [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
Nan Zhang33bb4bb2017-12-01 20:00:54 +000015python_library {
Nan Zhangced27512017-06-19 18:01:34 -070016 name: "py2-stdlib",
17 is_internal: true,
18 pkg_path: "stdlib",
19 srcs: [
20 "*.py",
21 "compiler/**/*.py",
Nan Zhangd5c4d4a2017-07-19 16:22:00 -070022 "ctypes/**/*.py",
Nan Zhangced27512017-06-19 18:01:34 -070023 "email/**/*.py",
24 "encodings/**/*.py",
25 "hotshot/**/*.py",
26 "importlib/**/*.py",
27 "json/**/*.py",
28 "logging/**/*.py",
29 "multiprocessing/**/*.py",
30 "pydoc_data/**/*.py",
Nan Zhanga3b40902018-05-23 15:44:01 -070031 "sqlite3/**/*.py",
Nan Zhangced27512017-06-19 18:01:34 -070032 "unittest/**/*.py",
33 "wsgiref/**/*.py",
34 "xml/**/*.py",
35 ],
36 // TODO(nanzhang): make exclude_srcs support globs.
37 exclude_srcs: [
38 "__phello__.foo.py",
39 ],
40 version: {
41 py2: {
42 enabled: true,
43 },
44 py3: {
45 enabled: false,
46 },
47 },
48 target: {
Dan Willemsenc88c0802017-09-25 14:33:27 -070049 darwin: {
50 srcs: [":py2-plat-darwin"],
51 },
Nan Zhang33bb4bb2017-12-01 20:00:54 +000052 linux: {
Dan Willemsenc88c0802017-09-25 14:33:27 -070053 srcs: [":py2-plat-linux2"],
54 },
Nan Zhangced27512017-06-19 18:01:34 -070055 },
Nan Zhang33bb4bb2017-12-01 20:00:54 +000056 host_supported: true,
Nan Zhangced27512017-06-19 18:01:34 -070057}
58
59filegroup {
Dan Willemsenc88c0802017-09-25 14:33:27 -070060 name: "py2-plat-darwin",
61 srcs: ["plat-darwin/*.py"],
62 path: "plat-darwin",
63}
64
65filegroup {
Nan Zhangced27512017-06-19 18:01:34 -070066 name: "py2-plat-linux2",
Dan Willemsenc88c0802017-09-25 14:33:27 -070067 srcs: ["plat-linux2/*.py"],
Nan Zhangced27512017-06-19 18:01:34 -070068 path: "plat-linux2",
69}