From fa2603fa8c36a6145520adc458742e05ab820714 Mon Sep 17 00:00:00 2001 From: 0u812 <0u812@users.noreply.github.com> Date: Tue, 16 Feb 2016 11:06:23 -0800 Subject: [PATCH] add files to build conda package --- CMakeLists.txt | 5 +++++ assets/roadrunner-64x64-red.png | Bin 0 -> 1312 bytes wrappers/Python/CMakeLists.txt | 4 ++++ wrappers/Python/conda/bld.bat | 2 ++ wrappers/Python/conda/build.sh | 1 + wrappers/Python/conda/meta.yaml.in | 20 ++++++++++++++++++++ 6 files changed, 32 insertions(+) create mode 100644 assets/roadrunner-64x64-red.png create mode 100644 wrappers/Python/conda/bld.bat create mode 100644 wrappers/Python/conda/build.sh create mode 100644 wrappers/Python/conda/meta.yaml.in 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 0000000000000000000000000000000000000000..2a492a97c682ddcacf6ed1e137d8b8790833ae91 GIT binary patch literal 1312 zcmV+*1>gFKP)WFU8GbZ8()Nlj2>E@cM*00e|dL_t(|+U=WNOj~6b z$A70S(D6~Ad}xNSRULCgj1j?cGj$0}GUJWelni3@YF;dCF-!c4A2;((Q#Fn`5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Sg+Cqr)s0070!oq1R;l z$H_bIIQ_s>b91vruh*+|I$dsBT3WJ3qlud;VYk}{TU%RC*VNQ}1oQ%vp!|7SvHt*R W)9ewEnF`|o0000_ literal 0 HcmV?d00001 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