Skip to content

Commit e744ba4

Browse files
committed
Renamed ifc.py to ifcopenshell.py and made it installable
1 parent eb39eeb commit e744ba4

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/ifcwrap/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ SET_SOURCE_FILES_PROPERTIES(IfcPython.i PROPERTIES CPLUSPLUS ON)
1818
SWIG_ADD_MODULE(ifc_wrapper python IfcPython.i)
1919
SWIG_LINK_LIBRARIES(ifc_wrapper ${PYTHON_LIBRARIES} IfcParse IfcGeom TKernel TKMath TKBRep TKGeomBase TKGeomAlgo TKG3d TKG2d TKShHealing TKTopAlgo TKMesh TKPrim TKBool TKBO TKFillet TKOffset)
2020

21+
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/ifcopenshell.py" DESTINATION "${CMAKE_BINARY_DIR}/ifcwrap")
22+
2123
# To install IfcPython let's get the site-packackes dir from python
2224
EXECUTE_PROCESS(COMMAND python -c "from distutils.sysconfig import get_python_lib as x; print (x())"
2325
OUTPUT_VARIABLE python_package_dir)
@@ -27,10 +29,11 @@ STRING(REPLACE "\r" "" python_package_dir "${python_package_dir}")
2729
STRING(REPLACE "\n" "" python_package_dir "${python_package_dir}")
2830

2931
INSTALL(FILES
32+
"${CMAKE_BINARY_DIR}/ifcwrap/ifcopenshell.py"
3033
"${CMAKE_BINARY_DIR}/ifcwrap/ifc_wrapper.py"
3134
"${CMAKE_BINARY_DIR}/ifcwrap/_ifc_wrapper.so"
3235
DESTINATION "${python_package_dir}")
3336

3437
ENDIF(PYTHONLIBS_FOUND)
3538

36-
ENDIF(SWIG_FOUND)
39+
ENDIF(SWIG_FOUND)

0 commit comments

Comments
 (0)