Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moose
Manage
Activity
Members
Labels
Plan
Issues
9
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sahil Moza
moose
Commits
7822c60b
Commit
7822c60b
authored
8 years ago
by
Dilawar Singh
Browse files
Options
Downloads
Plain Diff
Merge commit '
8bfef2e6
'
parents
fb9fba5e
8bfef2e6
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
moose-core/CMakeLists.txt
+14
-9
14 additions, 9 deletions
moose-core/CMakeLists.txt
moose-core/VERSION
+1
-0
1 addition, 0 deletions
moose-core/VERSION
moose-core/python/setup.py
+9
-4
9 additions, 4 deletions
moose-core/python/setup.py
with
24 additions
and
13 deletions
moose-core/CMakeLists.txt
+
14
−
9
View file @
7822c60b
...
@@ -17,25 +17,30 @@ include(FindPkgConfig)
...
@@ -17,25 +17,30 @@ include(FindPkgConfig)
# If from command line, version info is not passed, use the git to generate a
# If from command line, version info is not passed, use the git to generate a
# version file. If GIT fails, use the previous known version.
# version file. If GIT fails, use the previous known version.
set
(
VERSION_FILE
${
CMAKE_SOURCE_DIR
ECTORY
}
/VERSION
)
set
(
VERSION_FILE
${
CMAKE_
CURRENT_
SOURCE_DIR
}
/VERSION
)
find_program
(
GIT_EXEC
"git"
)
find_program
(
GIT_EXEC
"git"
)
message
(
STATUS
"Looking for git
${
GIT_EXEC
}
"
)
message
(
STATUS
"Looking for git
${
GIT_EXEC
}
"
)
if
(
(
NOT VERSION
)
AND GITEXEC
)
if
(
(
NOT
MOOSE_
VERSION
)
AND GIT
_
EXEC
)
execute_process
(
execute_process
(
COMMAND
${
GIT_EXEC
}
describe --tags --long
COMMAND
${
GIT_EXEC
}
describe --tags --long
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
OUTPUT_VARIABLE
GIT
_VERSION
_OUTPUT
OUTPUT_VARIABLE
MOOSE
_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE
OUTPUT_STRIP_TRAILING_WHITESPACE
)
)
file
(
WRITE
${
VERSION_FILE
}
${
GIT_VERSION_OUTPUT
}
)
message
(
STATUS
"+ Writing
${
MOOSE_VERSION
}
to
${
VERSION_FILE
}
"
)
add_definitions
(
-DMOOSE_VERSION=
"
${
GIT_VERSION_OUTPUT
}
"
)
file
(
WRITE
${
VERSION_FILE
}
${
MOOSE_VERSION
}
)
elseif
(
(
NOT VERSION
)
AND
(
NOT GIT_EXEC
)
)
elseif
(
(
NOT MOOSE_VERSION
)
AND
(
NOT GIT_EXEC
)
)
file
(
READ
${
VERSION_FILE
}
GIT_VERSION_OUTPUT
)
message
(
STATUS
"+ Reading
${
VERSION_FILE
}
"
)
add_definitions
(
-DMOOSE_VERSION=
"
${
GIT_VERSION_OUTPUT
}
"
)
file
(
READ
${
VERSION_FILE
}
GIT_VERSION_OUTPUT
)
elseif
(
MOOSE_VERSION
)
message
(
STATUS
"+ Using user VERSION
${
MOOSE_VERSION
}
"
)
file
(
WRITE
${
VERSION_FILE
}
${
MOOSE_VERSION
}
)
else
()
else
()
add_definitions
(
-DMOOSE_VERSION=
"
${
VERSION
}
"
)
message
(
FATAL_ERROR
"Could not determine MOOSE_VERSION"
)
endif
(
)
endif
(
)
add_definitions
(
-DMOOSE_VERSION=
"
${
MOOSE_VERSION
}
"
)
message
(
STATUS
"MOOSE Version
${
MOOSE_VERSION
}
"
)
# This snippet is from LLVM project.
# This snippet is from LLVM project.
# Sanity check our source directory to make sure that we are not trying to
# Sanity check our source directory to make sure that we are not trying to
...
...
This diff is collapsed.
Click to expand it.
moose-core/VERSION
0 → 100644
+
1
−
0
View file @
7822c60b
3.1.0-119-g835bf9a
\ No newline at end of file
This diff is collapsed.
Click to expand it.
moose-core/python/setup.py
+
9
−
4
View file @
7822c60b
...
@@ -31,6 +31,9 @@ __status__ = "Development"
...
@@ -31,6 +31,9 @@ __status__ = "Development"
import
os
import
os
from
distutils.core
import
setup
from
distutils.core
import
setup
with
open
(
'
../../VERSION
'
,
'
r
'
)
as
f
:
version
=
f
.
read
(
)
try
:
try
:
import
importlib.machinery
import
importlib.machinery
suffix
=
importlib
.
machinery
.
EXTENSION_SUFFIXES
[
0
]
suffix
=
importlib
.
machinery
.
EXTENSION_SUFFIXES
[
0
]
...
@@ -39,21 +42,23 @@ except Exception as e:
...
@@ -39,21 +42,23 @@ except Exception as e:
setup
(
setup
(
name
=
'
moose
'
,
name
=
'
moose
'
,
version
=
'
3.0.2
'
,
version
=
version
,
description
=
'
MOOSE python scripting module.
'
,
description
=
'
MOOSE python scripting module.
'
,
author
=
'
Dilwar Singh
'
,
author
=
'
MOOSERes
'
,
author_email
=
'
dilawars@ncbs.res.in
'
,
author_email
=
'
bhalla@ncbs.res.in
'
,
maintainer
=
'
Dilawar Singh
'
,
maintainer_email
=
'
dilawars@ncbs.res.in
'
,
url
=
'
http://moose.ncbs.res.in
'
,
url
=
'
http://moose.ncbs.res.in
'
,
packages
=
[
packages
=
[
'
rdesigneur
'
'
rdesigneur
'
,
'
moose
'
,
'
moose
'
,
'
moose.SBML
'
,
'
moose.neuroml
'
,
'
moose.neuroml
'
,
'
moose.genesis
'
,
'
moose.genesis
'
],
],
package_dir
=
{
package_dir
=
{
'
moose
'
:
'
moose
'
'
moose
'
:
'
moose
'
,
'
rdesigneur
'
:
'
rdesigneur
'
,
'
rdesigneur
'
:
'
rdesigneur
'
,
'
genesis
'
:
'
genesis
'
},
},
package_data
=
{
'
moose
'
:
[
'
_moose
'
+
suffix
]
},
package_data
=
{
'
moose
'
:
[
'
_moose
'
+
suffix
]
},
)
)
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment