Skip to content

Commit ba9ec99

Browse files
author
Dilawar Singh
committed
Write the version to VERSION file so setup.py file can use it.
1 parent 4e9aa31 commit ba9ec99

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,12 @@ elseif(MOOSE_VERSION)
3737
else()
3838
message(FATAL_ERROR "Could not determine MOOSE_VERSION" )
3939
endif( )
40-
4140
add_definitions( -DMOOSE_VERSION="${MOOSE_VERSION}")
4241
message( STATUS "MOOSE Version ${MOOSE_VERSION}" )
4342

43+
# Write VERSION to a file VERSION so that setup.py can use it.
44+
file(WRITE ${VERSION_FILE} ${MOOSE_VERSION} )
45+
4446
# This snippet is from LLVM project.
4547
# Sanity check our source directory to make sure that we are not trying to
4648
# generate an in-tree build (unless on MSVC_IDE, where it is ok), and to make

python/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
script_dir = os.path.dirname( os.path.abspath( __file__ ) )
3535

36-
version = '3.1'
36+
version = '3.1.2'
3737
try:
3838
with open( os.path.join( script_dir, '..', 'VERSION'), 'r' ) as f:
3939
version = f.read( )

0 commit comments

Comments
 (0)