Home | History | Annotate | Download | only in Lib
      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 
     15 python_library {
     16     name: "py2-stdlib",
     17     is_internal: true,
     18     pkg_path: "stdlib",
     19     srcs: [
     20         "*.py",
     21         "compiler/**/*.py",
     22         "ctypes/**/*.py",
     23         "distutils/**/*.py",
     24         "email/**/*.py",
     25         "encodings/**/*.py",
     26         "hotshot/**/*.py",
     27         "importlib/**/*.py",
     28         "json/**/*.py",
     29         "logging/**/*.py",
     30         "multiprocessing/**/*.py",
     31         "pydoc_data/**/*.py",
     32         "sqlite3/**/*.py",
     33         "unittest/**/*.py",
     34         "wsgiref/**/*.py",
     35         "xml/**/*.py",
     36     ],
     37     // TODO(nanzhang): make exclude_srcs support globs.
     38     exclude_srcs: [
     39         "__phello__.foo.py",
     40     ],
     41     version: {
     42         py2: {
     43             enabled: true,
     44         },
     45         py3: {
     46             enabled: false,
     47         },
     48     },
     49     target: {
     50         darwin: {
     51             srcs: [":py2-plat-darwin"],
     52         },
     53         linux: {
     54             srcs: [":py2-plat-linux2"],
     55         },
     56     },
     57     host_supported: true,
     58 }
     59 
     60 filegroup {
     61     name: "py2-plat-darwin",
     62     srcs: ["plat-darwin/*.py"],
     63     path: "plat-darwin",
     64 }
     65 
     66 filegroup {
     67     name: "py2-plat-linux2",
     68     srcs: ["plat-linux2/*.py"],
     69     path: "plat-linux2",
     70 }
     71