We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ffcb39 commit c8b2ccfCopy full SHA for c8b2ccf
setup.py
@@ -99,6 +99,10 @@ def get_dist(pkgname):
99
if version_pin := os.getenv("PYTORCH_VERSION"):
100
pytorch_dep += "==" + version_pin
101
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.)
106
pytorch_dep += f">={version_pin_ge},<{version_pin_lt}"
107
108
requirements = [
0 commit comments