mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 12:34:00 +00:00
Renamed ifc.py to ifcopenshell.py and made it installable
This commit is contained in:
@@ -18,6 +18,8 @@ SET_SOURCE_FILES_PROPERTIES(IfcPython.i PROPERTIES CPLUSPLUS ON)
|
|||||||
SWIG_ADD_MODULE(ifc_wrapper python IfcPython.i)
|
SWIG_ADD_MODULE(ifc_wrapper python IfcPython.i)
|
||||||
SWIG_LINK_LIBRARIES(ifc_wrapper ${PYTHON_LIBRARIES} IfcParse IfcGeom TKernel TKMath TKBRep TKGeomBase TKGeomAlgo TKG3d TKG2d TKShHealing TKTopAlgo TKMesh TKPrim TKBool TKBO TKFillet TKOffset)
|
SWIG_LINK_LIBRARIES(ifc_wrapper ${PYTHON_LIBRARIES} IfcParse IfcGeom TKernel TKMath TKBRep TKGeomBase TKGeomAlgo TKG3d TKG2d TKShHealing TKTopAlgo TKMesh TKPrim TKBool TKBO TKFillet TKOffset)
|
||||||
|
|
||||||
|
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/ifcopenshell.py" DESTINATION "${CMAKE_BINARY_DIR}/ifcwrap")
|
||||||
|
|
||||||
# To install IfcPython let's get the site-packackes dir from python
|
# To install IfcPython let's get the site-packackes dir from python
|
||||||
EXECUTE_PROCESS(COMMAND python -c "from distutils.sysconfig import get_python_lib as x; print (x())"
|
EXECUTE_PROCESS(COMMAND python -c "from distutils.sysconfig import get_python_lib as x; print (x())"
|
||||||
OUTPUT_VARIABLE python_package_dir)
|
OUTPUT_VARIABLE python_package_dir)
|
||||||
@@ -27,6 +29,7 @@ STRING(REPLACE "\r" "" python_package_dir "${python_package_dir}")
|
|||||||
STRING(REPLACE "\n" "" python_package_dir "${python_package_dir}")
|
STRING(REPLACE "\n" "" python_package_dir "${python_package_dir}")
|
||||||
|
|
||||||
INSTALL(FILES
|
INSTALL(FILES
|
||||||
|
"${CMAKE_BINARY_DIR}/ifcwrap/ifcopenshell.py"
|
||||||
"${CMAKE_BINARY_DIR}/ifcwrap/ifc_wrapper.py"
|
"${CMAKE_BINARY_DIR}/ifcwrap/ifc_wrapper.py"
|
||||||
"${CMAKE_BINARY_DIR}/ifcwrap/_ifc_wrapper.so"
|
"${CMAKE_BINARY_DIR}/ifcwrap/_ifc_wrapper.so"
|
||||||
DESTINATION "${python_package_dir}")
|
DESTINATION "${python_package_dir}")
|
||||||
|
|||||||
Reference in New Issue
Block a user