blob: 3a90571fc397ff6eff1b7fc3f9b626201539fb04 [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",
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",
31 "unittest/**/*.py",
32 "wsgiref/**/*.py",
33 "xml/**/*.py",
34 ],
35 // TODO(nanzhang): make exclude_srcs support globs.
36 exclude_srcs: [
37 "__phello__.foo.py",
38 ],
39 version: {
40 py2: {
41 enabled: true,
42 },
43 py3: {
44 enabled: false,
45 },
46 },
47 target: {
Dan Willemsenc88c0802017-09-25 14:33:27 -070048 darwin: {
49 srcs: [":py2-plat-darwin"],
50 },
Dan Willemsene41d4ce2017-10-02 10:41:09 -070051 linux_glibc_x86_64: {
Dan Willemsenc88c0802017-09-25 14:33:27 -070052 srcs: [":py2-plat-linux2"],
53 },
Nan Zhangced27512017-06-19 18:01:34 -070054 },
55}
56
57filegroup {
Dan Willemsenc88c0802017-09-25 14:33:27 -070058 name: "py2-plat-darwin",
59 srcs: ["plat-darwin/*.py"],
60 path: "plat-darwin",
61}
62
63filegroup {
Nan Zhangced27512017-06-19 18:01:34 -070064 name: "py2-plat-linux2",
Dan Willemsenc88c0802017-09-25 14:33:27 -070065 srcs: ["plat-linux2/*.py"],
Nan Zhangced27512017-06-19 18:01:34 -070066 path: "plat-linux2",
67}