aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2025-01-20 22:31:46 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2025-01-20 22:50:13 +0300
commitba8802c519f747abd71c9009882115c87be2ecae (patch)
tree94be4d85fd21265934e05b27534814f990667e78 /contrib/python
parentc9d773da0955088ede07abe271f712d9138694db (diff)
downloadydb-ba8802c519f747abd71c9009882115c87be2ecae.tar.gz
Intermediate changes
commit_hash:0f2e147061678d8a52e28cca2e5b8e347cc91793
Diffstat (limited to 'contrib/python')
-rw-r--r--contrib/python/Werkzeug/py3/patches/01-reload.patch22
-rw-r--r--contrib/python/Werkzeug/py3/werkzeug/_reloader.py6
2 files changed, 25 insertions, 3 deletions
diff --git a/contrib/python/Werkzeug/py3/patches/01-reload.patch b/contrib/python/Werkzeug/py3/patches/01-reload.patch
new file mode 100644
index 0000000000..4700ee1808
--- /dev/null
+++ b/contrib/python/Werkzeug/py3/patches/01-reload.patch
@@ -0,0 +1,22 @@
+--- contrib/python/Werkzeug/py3/werkzeug/_reloader.py (index)
++++ contrib/python/Werkzeug/py3/werkzeug/_reloader.py (working tree)
+@@ -191,8 +191,8 @@
+ py_script += ".exe"
+
+ if (
+- os.path.splitext(sys.executable)[1] == ".exe"
+- and os.path.splitext(py_script)[1] == ".exe"
++ (os.path.splitext(sys.executable)[1] == ".exe"
++ and os.path.splitext(py_script)[1] == ".exe") or getattr(sys, "is_standalone_binary", False)
+ ):
+ rv.pop(0)
+
+@@ -210,7 +210,7 @@
+ # Incorrectly rewritten by pydevd debugger from "-m script" to "script".
+ py_module = py_script
+
+- rv.extend(("-m", py_module.lstrip(".")))
++ #rv.extend(("-m", py_module.lstrip(".")))
+
+ rv.extend(args)
+ return rv
diff --git a/contrib/python/Werkzeug/py3/werkzeug/_reloader.py b/contrib/python/Werkzeug/py3/werkzeug/_reloader.py
index 57f3117bd7..21ceb88d38 100644
--- a/contrib/python/Werkzeug/py3/werkzeug/_reloader.py
+++ b/contrib/python/Werkzeug/py3/werkzeug/_reloader.py
@@ -191,8 +191,8 @@ def _get_args_for_reloading() -> t.List[str]:
py_script += ".exe"
if (
- os.path.splitext(sys.executable)[1] == ".exe"
- and os.path.splitext(py_script)[1] == ".exe"
+ (os.path.splitext(sys.executable)[1] == ".exe"
+ and os.path.splitext(py_script)[1] == ".exe") or getattr(sys, "is_standalone_binary", False)
):
rv.pop(0)
@@ -210,7 +210,7 @@ def _get_args_for_reloading() -> t.List[str]:
# Incorrectly rewritten by pydevd debugger from "-m script" to "script".
py_module = py_script
- rv.extend(("-m", py_module.lstrip(".")))
+ #rv.extend(("-m", py_module.lstrip(".")))
rv.extend(args)
return rv