diff --git a/CMakeLists.txt b/CMakeLists.txt index e021f7a8fb..d6779f4827 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) @@ -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() diff --git a/assets/roadrunner-64x64-red.png b/assets/roadrunner-64x64-red.png new file mode 100644 index 0000000000..2a492a97c6 Binary files /dev/null and b/assets/roadrunner-64x64-red.png differ diff --git a/wrappers/Python/CMakeLists.txt b/wrappers/Python/CMakeLists.txt index 4509082f86..7ff3b993e9 100644 --- a/wrappers/Python/CMakeLists.txt +++ b/wrappers/Python/CMakeLists.txt @@ -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() diff --git a/wrappers/Python/conda/bld.bat b/wrappers/Python/conda/bld.bat new file mode 100644 index 0000000000..c40a9bbeff --- /dev/null +++ b/wrappers/Python/conda/bld.bat @@ -0,0 +1,2 @@ +"%PYTHON%" setup.py install +if errorlevel 1 exit 1 diff --git a/wrappers/Python/conda/build.sh b/wrappers/Python/conda/build.sh new file mode 100644 index 0000000000..5a5aeeb48b --- /dev/null +++ b/wrappers/Python/conda/build.sh @@ -0,0 +1 @@ +$PYTHON setup.py install diff --git a/wrappers/Python/conda/meta.yaml.in b/wrappers/Python/conda/meta.yaml.in new file mode 100644 index 0000000000..9201b0a994 --- /dev/null +++ b/wrappers/Python/conda/meta.yaml.in @@ -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