mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
Remove Caffe2 code from tool scripts (#134941)
Fixes #ISSUE_NUMBER Pull Request resolved: https://github.com/pytorch/pytorch/pull/134941 Approved by: https://github.com/ezyang
This commit is contained in:
@ -2,7 +2,6 @@ from __future__ import annotations
|
||||
|
||||
import os
|
||||
import platform
|
||||
import shutil
|
||||
from glob import glob
|
||||
|
||||
from setuptools import distutils # type: ignore[import]
|
||||
@ -87,8 +86,3 @@ def build_caffe2(
|
||||
if cmake_only:
|
||||
return
|
||||
cmake.build(my_env)
|
||||
if build_python:
|
||||
caffe2_proto_dir = os.path.join(cmake.build_dir, "caffe2", "proto")
|
||||
for proto_file in glob(os.path.join(caffe2_proto_dir, "*.py")):
|
||||
if proto_file != os.path.join(caffe2_proto_dir, "__init__.py"):
|
||||
shutil.copy(proto_file, os.path.join("caffe2", "proto"))
|
||||
|
Reference in New Issue
Block a user