Skip to content

Commit c8b2ccf

Browse files
committed
Add comment
1 parent 0ffcb39 commit c8b2ccf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ def get_dist(pkgname):
9999
if version_pin := os.getenv("PYTORCH_VERSION"):
100100
pytorch_dep += "==" + version_pin
101101
elif (version_pin_ge := os.getenv("PYTORCH_VERSION_GE")) and (version_pin_lt := os.getenv("PYTORCH_VERSION_LT")):
102+
# This branch and the associated env vars exist to help third-party
103+
# builds like in https://github.com/pytorch/vision/pull/8936. This is
104+
# supported on a best-effort basis, we don't guarantee that this won't
105+
# eventually break (and we don't test it.)
102106
pytorch_dep += f">={version_pin_ge},<{version_pin_lt}"
103107

104108
requirements = [

0 commit comments

Comments
 (0)