Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 4 additions & 18 deletions lib/py/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,28 +144,14 @@ def run_setup(with_binary):


try:
with_binary = True
run_setup(with_binary)
sys.exit(0)

run_setup(with_binary=True)
except BuildFailed:
print()
print('*' * 80)
print("An error occurred while trying to compile with the C extension enabled")
print("Attempting to build without the extension now")
print('*' * 80)
print()

# Retry but without the binary
try:
run_setup(False)
sys.exit(0)

except BuildFailed:
print()
print('*' * 80)
print("An error occurred while trying to compile without the C extension enabled")
print("Build failed")
print('*' * 80)
print()
sys.exit(1)
# Fall back to the pure-Python build. If this also fails, let the
# exception propagate so the build backend reports the real error.
run_setup(with_binary=False)
Loading