blob: 11667b9fb759e89a793f495dba4598b009fef355 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
https://bugs.gentoo.org/show_bug.cgi?id=281968
https://bugs.python.org/issue6731
--- setup.py
+++ setup.py
@@ -56,6 +56,8 @@
else:
disable_ssl = 0
+exit_status = 0
+
def add_dir_to_list(dirlist, dir):
"""Add the directory 'dir' to the list 'dirlist' (after any relative
directories) if:
@@ -313,7 +315,10 @@
" detect_modules() for the module's name.")
print()
+ global exit_status
+
if self.failed:
+ exit_status = 1
failed = self.failed[:]
print()
print("Failed to build these modules:")
@@ -321,6 +326,7 @@
print()
if self.failed_on_import:
+ exit_status = 1
failed = self.failed_on_import[:]
print()
print("Following modules built successfully"
@@ -2286,6 +2292,7 @@
scripts = ["Tools/scripts/pydoc3", "Tools/scripts/idle3",
"Tools/scripts/2to3", "Tools/scripts/pyvenv"]
)
+ sys.exit(exit_status)
# --install-platlib
if __name__ == '__main__':
|