Skip to content

Commit 2d914db

Browse files
authoredSep 17, 2018
Merged all components on Sep 11. (#240)
* Build using Travis. * Scripts to test OSX and Linux packages. * Pull from branch chhennapoda. * No clang. * Made scripts executable. * New version. * Squashed 'moose-core/' changes from d229eba..406fee2 406fee2 Temp commit to test on OSX. cc3c604 Merge branch 'master' into chhennapoda 3420928 Update moose_test.py (#301) 61f4f66 show timeout in moose.test() . abf822c with python2, just test with GSL. Build python3 first. 088c616 Made changes to build system so that pymoose directory can be built in isolation. Build system is bit more module. Ideally I should make sure that each subdirectory can built in isolation. 3c0ff27 Few changes to build with python3.6. 5d688f6 Use option --relative in setup.py and tell cmake not to look into usr prefix anymore. 1f3fe9f Merge branch 'chhennapoda' of github.com:BhallaLab/moose-core into chhennapoda 3e19983 removed unneeded library which is never used. c2fbab8 cmake related changes to build on centos5 (manylinux docker image). git-subtree-dir: moose-core git-subtree-split: 406fee2a068f43af14be9918825e6fa88cc7377e * Squashed 'moose-examples/' changes from 2d98492..1502a55 1502a55 removed old script. git-subtree-dir: moose-examples git-subtree-split: 1502a550706e049ee726f8adb4694a77feb63bbd * Squashed 'moose-gui/' changes from d226931..8dae832 8dae832 kkitViewcontrol both the groups size are updated if moved from-to is different 44b53bc default: addSolver->mooseAddChemSolver, kkitViewcontrol: while rubberbandselection if entire group is selected then delete if partly selected then delete all the items under the selection 80b599f mgui: is popup exist then close, objectedit: objectwindowTitle is updated with name when changed, kkit: in positionChange all the neutral is updated with size, kkitViewcontrol:when moose object is moved from Compt/group to group/compartment then mooseobject path is set and for qgraphicalItem and qlineitem objects the parentItem is set which will be grpItem or comptItem git-subtree-dir: moose-gui git-subtree-split: 8dae832c3513bac92b3fba9601e9a77b4ec36653 * Install gsl-dev on travis. * Build chhennapoda branch. * Run tests as well. * Squashed 'moose-core/' changes from 406fee2..b608810 b608810 Fixes for linux. git-subtree-dir: moose-core git-subtree-split: b6088109bf8ba75cb072d97dd306bec9ab2b0e9a * Squashed 'moose-core/' changes from d229eba..3420928 3420928 Update moose_test.py (#301) git-subtree-dir: moose-core git-subtree-split: 342092829ca21e457c785a5ce791429d403b79e7 * Squashed 'moose-examples/' changes from 2d98492..1502a55 1502a55 removed old script. git-subtree-dir: moose-examples git-subtree-split: 1502a550706e049ee726f8adb4694a77feb63bbd * Squashed 'moose-gui/' changes from d226931..8dae832 8dae832 kkitViewcontrol both the groups size are updated if moved from-to is different 44b53bc default: addSolver->mooseAddChemSolver, kkitViewcontrol: while rubberbandselection if entire group is selected then delete if partly selected then delete all the items under the selection 80b599f mgui: is popup exist then close, objectedit: objectwindowTitle is updated with name when changed, kkit: in positionChange all the neutral is updated with size, kkitViewcontrol:when moose object is moved from Compt/group to group/compartment then mooseobject path is set and for qgraphicalItem and qlineitem objects the parentItem is set which will be grpItem or comptItem git-subtree-dir: moose-gui git-subtree-split: 8dae832c3513bac92b3fba9601e9a77b4ec36653 * Build nightly version.
1 parent 2253b11 commit 2d914db

31 files changed

+372
-4626
lines changed
 

‎.travis.yml

+5-30
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,28 @@
11
sudo: required
2-
dist: trusty
32
language: cpp
4-
compiler:
5-
- gcc
6-
- clang
73

84
os:
95
- linux
6+
- osx
107

118
branches:
129
only:
1310
- master
1411
- chamcham
15-
- chennapoda
12+
- chhennapoda
1613

1714
notifications:
1815
email:
1916
recipients:
2017
- dilawar.s.rajput@gmail.com
2118
- bhalla@ncbs.res.in
2219
- hrani@ncbs.res.in
23-
2420
on_success: change
2521
on_failure: always
2622

27-
env:
28-
- CTEST_MODEL=Nightly
29-
30-
cache: apt
3123
before_script:
32-
- sudo apt-get update -qq
33-
- sudo apt-get install libxml2-dev libbz2-dev wget
34-
- sudo apt-get install libhdf5-serial-dev
35-
- sudo apt-get install python-numpy python-setuptools python-networkx python-pip
36-
- sudo apt-get install cmake cdbs
37-
- sudo apt-get install python-suds python-matplotlib python-nose
38-
- sudo apt-get install python-qt4-dev python-qt4-gl python-sip-dev libqt4-dev libopenscenegraph-dev
39-
- sudo apt-get install doxygen python-sphinx python-lxml
40-
- sudo apt-get install git-buildpackage
41-
42-
install:
43-
- wget http://ftp.debian.org/debian/pool/main/g/gsl/libgsl0ldbl_1.16+dfsg-2_amd64.deb -O gsl_1.16.deb
44-
- sudo dpkg -i gsl_1.16.deb
45-
- wget http://ftp.debian.org/debian/pool/main/g/gsl/libgsl0-dev_1.16+dfsg-2_amd64.deb -O gsl_1.16-dev.deb
46-
- sudo dpkg -i gsl_1.16-dev.deb
47-
- sudo apt-get install -f
48-
- sudo ldconfig /usr/lib64
24+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./.travis_prepare_linux.sh; fi
4925

5026
script:
51-
- ./.travis_build.sh
52-
- sudo dpkg -i ../moose*.deb
53-
- /usr/bin/python -c 'import moose;print(moose.version());print(moose.__file__)'
27+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./.travis_build_linux.sh; fi
28+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./.travis_build_osx.sh; fi

‎.travis_build.sh

-24
This file was deleted.

‎.travis_build_linux.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
set -o nounset # Treat unset variables as an error
3+
set -e -x
4+
PATH=/usr/bin:/usr/local/bin:$PATH
5+
gbp buildpackage --git-ignore-branch --git-ignore-new -uc -us -d | tee _gbp.log
6+
pwd

‎.travis_build_osx.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
brew tap BhallaLab/moose
3+
brew install --HEAD moose-nightly
4+
python -m pip install networkx python-libsbml pyNeuroML matplotlib
5+
python -c 'import moose; print( moose.__version__ )'
6+
python -c 'import moose; print( moose.test() )'

‎.travis_prepare_linux.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
sudo apt-get update -qq
3+
sudo apt-get -y install libxml2-dev libbz2-dev wget
4+
sudo apt-get -y install libhdf5-serial-dev
5+
sudo apt-get -y install python-numpy python-setuptools python-networkx python-pip
6+
sudo apt-get -y install cmake cdbs
7+
sudo apt-get -y install libgsl0-dev
8+
sudo apt-get -y install python-suds python-matplotlib
9+
sudo apt-get -y install python-qt4-dev python-qt4-gl python-sip-dev libqt4-dev libopenscenegraph-dev
10+
sudo apt-get -y install doxygen python-sphinx python-lxml
11+
sudo apt-get -y install git-buildpackage
12+
sudo apt-get -y install -f
13+
sudo ldconfig /usr/lib64

‎debian/changelog

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
moose (3.2.0.3ubuntu1) experimental; urgency=medium
2+
3+
* Version bumped.
4+
5+
-- Dilawar Singh <dilawars@ncbs.res.in> Tue, 11 Sep 2018 12:26:15 +0530
6+
17
moose (3.1.3ubuntu1) experimental; urgency=medium
28

39
* Version bumped.

‎debian/rules

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export DH_VERBOSE=1
88
dh "$@" --buildsystem=cmake --with-python2
99

1010
override_dh_auto_configure:
11-
dh_auto_configure -- -DVERSION_MOOSE=3.1.3 -DCMAKE_SKIP_RPATH=ON
11+
dh_auto_configure -- -DVERSION_MOOSE=3.2.0-dev -DCMAKE_SKIP_RPATH=ON
1212

1313
override_dh_python2:
1414
dh_numpy

‎moose-core/.travis/travis_build_linux.sh

+15-17
Original file line numberDiff line numberDiff line change
@@ -40,32 +40,20 @@ unset PYTHONPATH
4040
$PYTHON2 -m compileall -q .
4141
if type $PYTHON3 > /dev/null; then $PYTHON3 -m compileall -q . ; fi
4242

43-
echo "Currently in `pwd`"
44-
(
45-
mkdir -p _GSL_BUILD && cd _GSL_BUILD
46-
cmake -DDEBUG=ON -DPYTHON_EXECUTABLE="$PYTHON2" ..
47-
$MAKE && ctest --output-on-failure
48-
sudo make install && cd /tmp
49-
$PYTHON2 -c 'import moose;print(moose.__file__);print(moose.version())'
50-
)
51-
52-
(
53-
# Now with boost.
54-
mkdir -p _BOOST_BUILD && cd _BOOST_BUILD && \
55-
cmake -DWITH_BOOST_ODE=ON -DDEBUG=ON -DPYTHON_EXECUTABLE="$PYTHON2" ..
56-
$MAKE && ctest --output-on-failure
57-
)
58-
5943
# This is only applicable on linux build.
6044
echo "Python3: Removed python2-networkx and install python3"
6145
if type $PYTHON3 > /dev/null; then
6246
sudo apt-get remove -qq python-networkx || echo "Error with apt"
6347
sudo apt-get install -qq python3-networkx || echo "Error with apt"
48+
49+
# GSL.
6450
(
6551
mkdir -p _GSL_BUILD2 && cd _GSL_BUILD2 && \
66-
cmake -DPYTHON_EXECUTABLE="$PYTHON3" ..
52+
cmake -DPYTHON_EXECUTABLE="$PYTHON3" -DDEBUG=ON ..
6753
$MAKE && ctest --output-on-failure
6854
)
55+
56+
# BOOST
6957
(
7058
mkdir -p _BOOST_BUILD2 && cd _BOOST_BUILD2 && \
7159
cmake -DWITH_BOOST_ODE=ON -DPYTHON_EXECUTABLE="$PYTHON3" ..
@@ -75,3 +63,13 @@ if type $PYTHON3 > /dev/null; then
7563
else
7664
echo "Python3 is not found. Build disabled"
7765
fi
66+
67+
# PYTHON2. Soon to be deprecated.
68+
echo "Currently in `pwd`"
69+
(
70+
mkdir -p _GSL_BUILD && cd _GSL_BUILD
71+
cmake -DDEBUG=OFF -DPYTHON_EXECUTABLE="$PYTHON2" ..
72+
$MAKE && ctest --output-on-failure
73+
sudo make install && cd /tmp
74+
$PYTHON2 -c 'import moose;print(moose.__file__);print(moose.version())'
75+
)

‎moose-core/CMakeLists.txt

+8-7
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ if(HDF5_FOUND)
226226
endif(NOT HDF5_HL_LIBRARIES)
227227
list(APPEND HDF5_LIBRARIES ${HDF5_HL_LIBRARIES})
228228

229-
message(STATUS "MOOSE will use following HDF5 ${HDF5_LIBRARIES}" )
229+
# message(STATUS "MOOSE will use following HDF5 ${HDF5_LIBRARIES}" )
230230
foreach(HDF5_LIB ${HDF5_LIBRARIES})
231231
if(HDF5_LIB)
232232
get_filename_component( HDF5_LIB_EXT ${HDF5_LIB} EXT )
@@ -280,7 +280,7 @@ if(WITH_GSL)
280280
message( STATUS "Using static libraries ${GSL_STATIC_LIBRARIES}" )
281281
list(APPEND STATIC_LIBRARIES ${GSL_STATIC_LIBRARIES})
282282
else( )
283-
message(STATUS "Using gsl libraries: ${GSL_LIBRARIES}")
283+
# message(DEBUG "Using gsl libraries: ${GSL_LIBRARIES}")
284284
foreach(GSL_LIB ${GSL_LIBRARIES} )
285285
if(GSL_LIB)
286286
get_filename_component( GSL_LIB_EXT ${GSL_LIB} EXT )
@@ -356,7 +356,7 @@ if(SYSTEM_SHARED_LIBS)
356356
endif( )
357357

358358
# MAC linker does not understand many of gnu-ld options.
359-
message( STATUS "Shared libs: ${SYSTEM_SHARED_LIBS}")
359+
# message( DEBUG "Shared libs: ${SYSTEM_SHARED_LIBS}")
360360
if(MACOSX)
361361
target_link_libraries(libmoose
362362
"-Wl,-all_load"
@@ -430,10 +430,11 @@ set(PYMOOSE_BDIST_FILE ${PYMOOSE_BDIST_DIR}/pymoose-${VERSION_MOOSE}.${_platform
430430
message(STATUS "binary distribution file ${PYMOOSE_BDIST_FILE}")
431431
add_custom_target(bdist ALL DEPENDS ${PYMOOSE_BDIST_FILE} )
432432

433-
# Any command using setup.cmake.py must run in the same directory.
433+
# Any command using setup.cmake.py must run in the same directory. Use option
434+
# `--relative` to prefix is aways fixed.
434435
add_custom_command( OUTPUT ${PYMOOSE_BDIST_FILE}
435436
COMMAND ${PYTHON_EXECUTABLE} setup.cmake.py bdist_dumb -p ${_platform}
436-
-d ${PYMOOSE_BDIST_DIR}
437+
-d ${PYMOOSE_BDIST_DIR} --relative
437438
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/python
438439
COMMENT "bdist is saved to ${PYMOOSE_BDIST_DIR}"
439440
VERBATIM
@@ -462,8 +463,8 @@ add_dependencies( copy_pymoose _moose )
462463
install(TARGETS moose.bin DESTINATION bin CONFIGURATIONS Debug)
463464
install(TARGETS libmoose DESTINATION lib CONFIGURATIONS Debug)
464465

465-
# install pymoose bdist. The bdist comes with predefined /usr; remove it.
466-
install(DIRECTORY ${PYMOOSE_BDIST_INSTALL_DIR}/usr/
466+
# install pymoose bdist.
467+
install(DIRECTORY ${PYMOOSE_BDIST_INSTALL_DIR}/
467468
DESTINATION ${CMAKE_INSTALL_PREFIX}
468469
CONFIGURATIONS Release Debug
469470
)

‎moose-core/basecode/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
cmake_minimum_required(VERSION 2.6)
2-
include_directories(../msg)
1+
cmake_minimum_required(VERSION 2.8)
2+
include( ${CMAKE_CURRENT_SOURCE_DIR}/../CheckCXXCompiler.cmake )
33
add_library(basecode
44
consts.cpp
55
Element.cpp

‎moose-core/basecode/Conv.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#ifndef _CONV_H
1010
#define _CONV_H
1111

12-
#include <string>
12+
#include <cstring>
1313

1414
/**
1515
* This set of templates defines converters. The conversions are from

‎moose-core/basecode/header.h

-9
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,11 @@
2020
#include <iostream>
2121
#include <sstream>
2222
#include <typeinfo> // used in Conv.h to extract compiler independent typeid
23-
#include <climits> // Required for g++ 4.3.2
24-
#include <cstring> // Required for g++ 4.3.2
25-
#include <cstdlib> // Required for g++ 4.3.2
2623

27-
// Used for INT_MAX and UINT_MAX, but may be done within the compiler
28-
// #include <limits.h>
29-
//
3024
#include <cassert>
3125

3226
using namespace std;
3327

34-
#ifndef MOOSE_VERSION
35-
#define MOOSE_VERSION "3.0.2"
36-
#endif
3728

3829
/**
3930
* Looks up and uniquely identifies functions, on a per-Cinfo basis.

‎moose-core/cmake_modules/FindNumPy.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
# Finding NumPy involves calling the Python interpreter
4242

43-
message( STATUS "Using python ${PYTHON_EXECUTABLE} to locate numpy" )
43+
message( STATUS "Using ${PYTHON_EXECUTABLE} to locate numpy" )
4444
execute_process(COMMAND ${PYTHON_EXECUTABLE} -c
4545
"import numpy as n; print(n.__version__); print(n.get_include());"
4646
RESULT_VARIABLE _NUMPY_SEARCH_SUCCESS

‎moose-core/external/tinyxml/CMakeLists.txt

-2
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.