about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pip-tools/fix-setup-py-bad-syntax-detection.patch
blob: 6a88222139e1b9d19eb53ee9aec0eca33f6c0048 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --color -ru a/piptools/scripts/compile.py b/piptools/scripts/compile.py
--- a/piptools/scripts/compile.py	2022-06-30 11:24:26.000000000 +0200
+++ b/piptools/scripts/compile.py	2022-08-01 13:40:58.392515765 +0200
@@ -6,7 +6,7 @@
 from typing import IO, Any, BinaryIO, List, Optional, Tuple, Union, cast
 
 import click
-from build import BuildBackendException
+from build import BuildException
 from build.util import project_wheel_metadata
 from click.utils import LazyFile, safecall
 from pip._internal.commands import create_command
@@ -421,7 +421,7 @@
                 metadata = project_wheel_metadata(
                     os.path.dirname(os.path.abspath(src_file))
                 )
-            except BuildBackendException as e:
+            except (BuildException,StopIteration) as e:
                 log.error(str(e))
                 log.error(f"Failed to parse {os.path.abspath(src_file)}")
                 sys.exit(2)