Skip to content
Snippets Groups Projects
Commit fe82fab1 authored by Harsha Rani's avatar Harsha Rani
Browse files

Merge branch 'master' of https://github.com/BhallaLab/moose

parents 7613fc1b f1d6aba3
No related branches found
No related tags found
No related merge requests found
...@@ -474,6 +474,7 @@ install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/scripts/moose ...@@ -474,6 +474,7 @@ install(PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/scripts/moose
DESTINATION bin DESTINATION bin
) )
# This target is built by pymoose/CMakeLists.txt file.
if(WITH_PYTHON) if(WITH_PYTHON)
install(CODE install(CODE
" "
......
3.1.0-120-g343cb02 3.1.1-29-g7143a53
\ No newline at end of file \ No newline at end of file
...@@ -82,9 +82,11 @@ endif(MACOSX) ...@@ -82,9 +82,11 @@ endif(MACOSX)
# Make this target dependant on all python files in python folder. # Make this target dependant on all python files in python folder.
add_custom_target(copy_python_files ALL add_custom_target(copy_python_files ALL
COMMAND ${CMAKE_COMMAND} -E copy_directory COMMAND ${CMAKE_COMMAND} -E copy_directory
${CMAKE_SOURCE_DIR}/python ${CMAKE_SOURCE_DIR}/python ${CMAKE_BINARY_DIR}/python
${CMAKE_BINARY_DIR}/python COMMAND ${CMAKE_COMMAND} -E copy
COMMENT "Copying python files to build directory" ${CMAKE_SOURCE_DIR}/VERSION ${CMAKE_BINARY_DIR}/VERSION
COMMENT "Copying required python files and other files to build directory"
VERBATIM VERBATIM
) )
add_dependencies(_moose copy_python_files) add_dependencies(_moose copy_python_files)
...@@ -31,10 +31,15 @@ __status__ = "Development" ...@@ -31,10 +31,15 @@ __status__ = "Development"
import os import os
from distutils.core import setup from distutils.core import setup
script_dir = os.path.dirname( os.path.abspath( __FILE__ ) ) script_dir = os.path.dirname( os.path.abspath( __file__ ) )
with open( os.path.join( script_dir, '../../VERSION'), 'r' ) as f: version = '3.1'
version = f.read( ) try:
with open( os.path.join( script_dir, '..', 'VERSION'), 'r' ) as f:
version = f.read( )
except Exception as e:
print( 'Failed to read VERSION %s' % e )
print( 'Using default 3.1' )
try: try:
import importlib.machinery import importlib.machinery
......
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