Files
pytorch/tools/build_defs/fb_python_binary.bzl
Linbin Yu c9cbdb411d [2] move more pytorch buck targets to shared build (#79330)
Summary: as title

Test Plan: sandcastle and oss CI

Differential Revision: D37087229

Pull Request resolved: https://github.com/pytorch/pytorch/pull/79330
Approved by: https://github.com/dhruvbird
2022-06-22 03:14:23 +00:00

10 lines
321 B
Python

# Only used for PyTorch open source BUCK build
# @lint-ignore-every BUCKRESTRICTEDSYNTAX
# @lint-ignore-every FBCODEBZLADDLOADS
def fb_python_binary(**kwgs):
if read_config("pt", "is_oss", "0") == "0":
fail("This file is for open source pytorch build. Do not use it in fbsource!")
python_binary(**kwgs)