use "Extension" instead of the unimported "setuptools.Extension" (#14475)

Summary:
use "Extension" instead of the unimported "setuptools.Extension"
Pull Request resolved: https://github.com/pytorch/pytorch/pull/14475

Differential Revision: D13356219

Pulled By: ezyang

fbshipit-source-id: 5a3e7eb73a32d6bf09676efd9eddded5586435cd
This commit is contained in:
HB_alon
2018-12-05 22:16:44 -08:00
committed by Facebook Github Bot
parent d393dd0744
commit 5e307bd1be

View File

@ -901,13 +901,13 @@ if USE_CUDA:
# These extensions are built by cmake and copied manually in build_extensions()
# inside the build_ext implementaiton
extensions.append(
setuptools.Extension(
Extension(
name=str('caffe2.python.caffe2_pybind11_state'),
sources=[]),
)
if USE_CUDA:
extensions.append(
setuptools.Extension(
Extension(
name=str('caffe2.python.caffe2_pybind11_state_gpu'),
sources=[]),
)