Commit 2e40a3cc authored by Marco Berzborn's avatar Marco Berzborn
Browse files

distutils built script

parent 7a2c86b2
......@@ -44,7 +44,9 @@ if( NOT WIN32 )
set( BATCH_SCRIPT_EXTENSION "sh" )
endif( )
set( BATCH_SCRIPT_TYPE distutils_build_va_python )
add_custom_command( TARGET VAPython POST_BUILD COMMAND "${BATCH_SCRIPT_TYPE}.${BATCH_SCRIPT_EXTENSION}" WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" COMMENT "Running distutils" VERBATIM )
# set the python source dir, as the script is run post build and the working dir might change
set( VAPythonSrcDir ${CMAKE_CURRENT_SOURCE_DIR})
add_custom_command( TARGET VAPython POST_BUILD COMMAND "${VAPythonSrcDir}/${BATCH_SCRIPT_TYPE}.${BATCH_SCRIPT_EXTENSION}" WORKING_DIRECTORY "${VAPythonSrcDir}" COMMENT "Running distutils" VERBATIM )
# configure
#vista_configure_lib( VAPython )
......
python setup.py clean
python setup.py build_ext
python setup.py install
# python setup.py install --prefix dist
# python setup.py sdist --formats=zip
# rem later:
# rem python.exe setup.py bdist_wininst
# python.exe setup.py check
......@@ -9,8 +9,9 @@ module1 = Extension('va',
( 'VISTAINTERPROCCOMM_STATIC', 0 ),
( 'VISTAASPECTS_STATIC',0 ) ],
include_dirs = [ '../VABase/include', '../VANet/include' ],
libraries = [ 'VABase', 'VANet', 'VistaBase', 'VistaAspects', 'VistaInterProcComm' ],
library_dirs = [ '../build/lib','../../ExternalLibs/tmp/ViSTA/build/lib' ],
library_dirs = [ '../build/lib','/opt/vista/lib' ],
sources = [ 'src/vasingleton.cpp' ] )
setup ( name = 'va',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment