mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
ifcpatch make.py (#1319)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
# This can be packaged with `pyinstaller --onefile --clean --icon=icon.ico ifcpatch.py`
|
||||
# This can be packaged into one executable with ./make.py
|
||||
|
||||
import ifcopenshell
|
||||
import logging
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
# add hidden imports in recipes here
|
||||
HIDDEN_IMPORTS = [
|
||||
"ifcopenshell.util.selector",
|
||||
"ifcopenshell.util.element",
|
||||
"ifcopenshell.util.schema",
|
||||
"toposort",
|
||||
]
|
||||
|
||||
|
||||
def main():
|
||||
hiddenimport_args = " ".join('--hiddenimport "{}"'.format(imp) for imp in HIDDEN_IMPORTS)
|
||||
cmd = 'pyinstaller ./__init__.py --onefile --clean --add-data ".{}ifcpatch" {}'.format(
|
||||
os.pathsep, hiddenimport_args
|
||||
)
|
||||
subprocess.check_output(cmd, shell=True)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user