See #7131. Rollback to prevent instant segfaults on Linux.

This commit is contained in:
Dion Moult
2025-09-28 18:15:13 +10:00
parent bcde68d851
commit 0fe869c169
3 changed files with 7 additions and 4 deletions
+2 -2
View File
@@ -63,8 +63,8 @@ PLATFORMTAG:=win_amd64
endif
BINARY_VERSION:=0.8.4
IOS_URL:=https://s3.amazonaws.com/ifcopenshell-builds/ifcopenshell-python-$(PYNUMBER)-v$(BINARY_VERSION)-e795cec-$(PLATFORM).zip
IFCCONVERT_URL:=https://s3.amazonaws.com/ifcopenshell-builds/IfcConvert-v$(BINARY_VERSION)-e795cec-$(PLATFORM).zip
IOS_URL:=https://s3.amazonaws.com/ifcopenshell-builds/ifcopenshell-python-$(PYNUMBER)-v$(BINARY_VERSION)-6924012-$(PLATFORM).zip
IFCCONVERT_URL:=https://s3.amazonaws.com/ifcopenshell-builds/IfcConvert-v$(BINARY_VERSION)-6924012-$(PLATFORM).zip
.PHONY: build-urls
build-urls:
@@ -185,7 +185,10 @@ def open(
return sqlite(path)
if should_stream:
return stream(path)
f = ifcopenshell_wrapper.open(str(path.absolute()), readonly)
if readonly: # Temporary conditional see #7131. Remove once newer builds don't segfault on Linux.
f = ifcopenshell_wrapper.open(str(path.absolute()), readonly)
else:
f = ifcopenshell_wrapper.open(str(path.absolute()))
return file(f)