Skip to content

Commit

Permalink
add files to build conda package
Browse files Browse the repository at this point in the history
  • Loading branch information
0u812 committed Feb 16, 2016
1 parent 8869afd commit fa2603f
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ OPTION (INSTALL_STATIC_LIB "Install RoadRunner CXX static lib"
OPTION (RR_BUILD_SHARED_CORE "Build RoadRunner Core Shared library" ON)
OPTION (BUILD_TESTS "Build the SBML C API test suite" OFF)
OPTION (INSTALL_SBML_MODELS "Install SBML Models" ON )
OPTION (WITH_CONDA_BUILDER "Include files required to build the conda package" OFF)

#Setup so that roadrunner is always built as a dll and linked statically with 'as much as possible'
set(BUILD_SHARED_LIBS ON)
Expand Down Expand Up @@ -392,3 +393,7 @@ if(WIN32)
FILES win32_bin_README.txt DESTINATION bin/ RENAME README.txt
)
endif(WIN32)

if(WITH_CONDA_BUILDER)
install(FILES assets/roadrunner-64x64-red.png DESTINATION assets)
endif()
Binary file added assets/roadrunner-64x64-red.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions wrappers/Python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,7 @@ install(FILES INSTALL.txt setup.py MANIFEST.in
DESTINATION .
)

if(WITH_CONDA_BUILDER)
configure_file(conda/meta.yaml.in conda/meta.yaml @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/conda/meta.yaml conda/build.sh conda/bld.bat DESTINATION .)
endif()
2 changes: 2 additions & 0 deletions wrappers/Python/conda/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"%PYTHON%" setup.py install
if errorlevel 1 exit 1
1 change: 1 addition & 0 deletions wrappers/Python/conda/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
$PYTHON setup.py install
20 changes: 20 additions & 0 deletions wrappers/Python/conda/meta.yaml.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package:
name: libroadrunner
version: @ROADRUNNER_VERSION@

requirements:
build:
- python
- setuptools
- numpy >=1.9
run:
- numpy >=1.9

app:
summary: "An SBML Modeling and Simulation Engine"
entry: ipython notebook
icon: assets/roadrunner-64x64-red.png

about:
home: https://github.com/sys-bio/sbml2matlab
license: BSD 3-Clause

0 comments on commit fa2603f

Please sign in to comment.