Adding a __init__.py python module, for the Debian packaging

This commit is contained in:
Jonathan Thomas
2012-08-08 01:13:57 -05:00
parent 370a28905c
commit 0dcc8fc7fe
2 changed files with 4 additions and 1 deletions

2
cmake/Python/__init__.py Normal file
View File

@@ -0,0 +1,2 @@
# Automatically import all openshot objects when this module is imported
from openshot import *

View File

@@ -81,6 +81,7 @@ SWIG_LINK_LIBRARIES(openshot ${PYTHON_LIBRARIES} openshot)
file(GLOB_RECURSE headers ${CMAKE_SOURCE_DIR}/include/*.h)
INSTALL(FILES ${headers} DESTINATION include/libopenshot)
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/openshot.py DESTINATION share/python/libopenshot)
INSTALL(FILES ${CMAKE_SOURCE_DIR}/cmake/Python/__init__.py DESTINATION share/python/libopenshot)
IF (UNIX)
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/libopenshot.so DESTINATION lib)
@@ -95,4 +96,4 @@ ELSE (UNIX)
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/_openshot.so DESTINATION share/python)
ENDIF(APPLE)
ENDIF(WIN32)
ENDIF(UNIX)
ENDIF(UNIX)