Skip to content

Commit f6e0bdc

Browse files
NicolasHugfacebook-github-bot
authored andcommitted
[fbsync] Avoid modifying TORCHVISION_INCLUDE global variable in setup.py (#8533)
Reviewed By: vmoens Differential Revision: D60596218 fbshipit-source-id: 1f4d53663c301feee862d7df129bcfd2edf39afe
1 parent b69ff1c commit f6e0bdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,8 @@ def find_libjpeg():
262262

263263
def make_image_extension():
264264

265-
include_dirs = TORCHVISION_INCLUDE
266-
library_dirs = TORCHVISION_LIBRARY
265+
include_dirs = TORCHVISION_INCLUDE.copy()
266+
library_dirs = TORCHVISION_LIBRARY.copy()
267267

268268
libraries = []
269269
define_macros, extra_compile_args = get_macros_and_flags()

0 commit comments

Comments
 (0)