diff options
Diffstat (limited to 'python-jax.diff')
-rw-r--r-- | python-jax.diff | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/python-jax.diff b/python-jax.diff new file mode 100644 index 000000000000..70516acaf134 --- /dev/null +++ b/python-jax.diff @@ -0,0 +1,18 @@ +--- a/build/build.py 2023-07-28 00:11:05.000000000 +0300 ++++ b/build/build.py 2023-07-28 03:46:42.158795877 +0300 +@@ -50,11 +50,12 @@ + + def shell(cmd): + try: +- output = subprocess.check_output(cmd) ++ res= subprocess.run(cmd, check=True, capture_output=True) + except subprocess.CalledProcessError as e: +- if e.output: print(e.output) ++ if e.stdout: print(e.stdout) ++ if e.stderr: print(e.stderr) + raise +- return output.decode("UTF-8").strip() ++ return res.stdout.decode("UTF-8").strip() + + + # Python |