mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 09:32:37 +00:00
downstream: express: fix use of non-existent ifcexpressparser
`express.bnf` arg wasn't handled since d506ad77b
`ifcexpressparser` waa moved inside `ifcopenshell-python` awhile ago too
This commit is contained in:
@@ -539,8 +539,9 @@ if(COMPILE_SCHEMA)
|
|||||||
|
|
||||||
# Bootstrap the parser
|
# Bootstrap the parser
|
||||||
message(STATUS "Compiling schema, this will take a while...")
|
message(STATUS "Compiling schema, this will take a while...")
|
||||||
execute_process(COMMAND ${PYTHON_EXECUTABLE} bootstrap.py express.bnf
|
execute_process(
|
||||||
WORKING_DIRECTORY ../src/ifcexpressparser
|
COMMAND ${PYTHON_EXECUTABLE} bootstrap.py
|
||||||
|
WORKING_DIRECTORY ../src/ifcopenshell-python/ifcopenshell/express
|
||||||
OUTPUT_FILE express_parser.py
|
OUTPUT_FILE express_parser.py
|
||||||
RESULT_VARIABLE SUCCESS)
|
RESULT_VARIABLE SUCCESS)
|
||||||
|
|
||||||
@@ -549,7 +550,8 @@ if(COMPILE_SCHEMA)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Generate code
|
# Generate code
|
||||||
execute_process(COMMAND ${PYTHON_EXECUTABLE} ../ifcexpressparser/express_parser.py ../../${COMPILE_SCHEMA}
|
execute_process(
|
||||||
|
COMMAND ${PYTHON_EXECUTABLE} ../ifcopenshell-python/ifcopenshell/express/express_parser.py ../../${COMPILE_SCHEMA}
|
||||||
WORKING_DIRECTORY ../src/ifcparse
|
WORKING_DIRECTORY ../src/ifcparse
|
||||||
OUTPUT_VARIABLE COMPILED_SCHEMA_NAME)
|
OUTPUT_VARIABLE COMPILED_SCHEMA_NAME)
|
||||||
|
|
||||||
|
|||||||
@@ -210,9 +210,8 @@ for id in sorted(to_emit):
|
|||||||
statements.append("%s << %s" % (id, stmt))
|
statements.append("%s << %s" % (id, stmt))
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
print(
|
print(r"""
|
||||||
r"""
|
# This file is generated by ifcopenshell.express.bootstrap
|
||||||
# This file is generated by IfcOpenShell ifcexpressparser bootstrap.py
|
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
import os
|
import os
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
# This file is generated by IfcOpenShell ifcexpressparser bootstrap.py
|
# This file is generated by ifcopenshell.express.bootstrap
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
import os
|
import os
|
||||||
|
|||||||
Reference in New Issue
Block a user