1// 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 {
16    name: "py2-stdlib",
17    is_internal: true,
18    pkg_path: "stdlib",
19    srcs: [
20        "*.py",
21        "compiler/**/*.py",
22        "ctypes/**/*.py",
23        "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: {
48        darwin: {
49            srcs: [":py2-plat-darwin"],
50        },
51        linux: {
52            srcs: [":py2-plat-linux2"],
53        },
54    },
55    host_supported: true,
56}
57
58filegroup {
59    name: "py2-plat-darwin",
60    srcs: ["plat-darwin/*.py"],
61    path: "plat-darwin",
62}
63
64filegroup {
65    name: "py2-plat-linux2",
66    srcs: ["plat-linux2/*.py"],
67    path: "plat-linux2",
68}
69