Make libgtsam_python a hidden module by adding '_' before lib name
							parent
							
								
									8fa1acc553
								
							
						
					
					
						commit
						d3db7309bc
					
				| 
						 | 
				
			
			@ -1 +1 @@
 | 
			
		|||
/libgtsam_python.so
 | 
			
		||||
/_libgtsam_python.so
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,2 +1,2 @@
 | 
			
		|||
from libgtsam_python import *
 | 
			
		||||
from _libgtsam_python import *
 | 
			
		||||
import utils
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -43,6 +43,6 @@ set(PYTHON_MODULE_DIRECTORY ${CMAKE_SOURCE_DIR}/python/gtsam)
 | 
			
		|||
# Cause the library to be output in the correct directory.
 | 
			
		||||
add_custom_command(TARGET ${moduleName}_python
 | 
			
		||||
	POST_BUILD
 | 
			
		||||
	COMMAND cp -v ${PYLIB_OUTPUT_FILE} ${PYTHON_MODULE_DIRECTORY}/${PYLIB_SO_NAME}
 | 
			
		||||
	COMMAND cp -v ${PYLIB_OUTPUT_FILE} ${PYTHON_MODULE_DIRECTORY}/_${PYLIB_SO_NAME}
 | 
			
		||||
	WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
 | 
			
		||||
	COMMENT "Copying library files to python directory" )
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -57,7 +57,7 @@ void registerNumpyEigenConversions();
 | 
			
		|||
 | 
			
		||||
//-----------------------------------//
 | 
			
		||||
 | 
			
		||||
BOOST_PYTHON_MODULE(libgtsam_python){
 | 
			
		||||
BOOST_PYTHON_MODULE(_libgtsam_python){
 | 
			
		||||
 | 
			
		||||
  // Should be the first thing to be done
 | 
			
		||||
  import_array();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue