depot/third_party/nixpkgs/pkgs/development/python-modules/albumentations/dont-check-for-updates.patch
Default email 657f08b14c Project import generated by Copybara.
GitOrigin-RevId: 807e9154dcb16384b1b765ebe9cd2bba2ac287fd
2024-10-29 11:11:06 +00:00

12 lines
484 B
Diff

diff --git a/albumentations/__init__.py b/albumentations/__init__.py
index 0b3b531..7c69c65 100644
--- a/albumentations/__init__.py
+++ b/albumentations/__init__.py
@@ -7,7 +7,3 @@ from .augmentations import *
from .core.composition import *
from .core.serialization import *
from .core.transforms_interface import *
-
-# Perform the version check after all other initializations
-if os.getenv("NO_ALBUMENTATIONS_UPDATE", "").lower() not in {"true", "1"}:
- check_for_updates()