diff --git a/SuperBuild.cmake b/SuperBuild.cmake index 38ea7e7a..69278bc3 100644 --- a/SuperBuild.cmake +++ b/SuperBuild.cmake @@ -407,5 +407,56 @@ else () file(CREATE_LINK ${SyneRBI_INSTALL}/bin/env_sirf.csh ${SyneRBI_INSTALL}/bin/env_ccppetmr.csh SYMBOLIC) endif() +# Install python packages via pip and setup.py +if(PYTHONINTERP_FOUND) + set(PYTHON_SETUP_PKGS "sirf" CACHE INTERNAL "list of provided python packages") + + # alias sirf.p* -> p* for backward-compatibility + function(python_pkg_alias PY_PKG_NEW PY_PKG_OLD) + list(APPEND PYTHON_SETUP_PKGS ${PY_PKG_NEW}) + set(PYTHON_SETUP_PKGS "${PYTHON_SETUP_PKGS}" PARENT_SCOPE) + set(SETUP_PY_INIT_IN "${CMAKE_CURRENT_SOURCE_DIR}/SuperBuild/__init__.py.in") + set(SETUP_PY_INIT "${PYTHON_DEST}/${PY_PKG_NEW}/__init__.py") + configure_file("${SETUP_PY_INIT_IN}" "${SETUP_PY_INIT}") + # message(STATUS "setup.py:${SETUP_PY_INIT}") + message(STATUS "setup.py:${PY_PKG_NEW}<-${PY_PKG_OLD}") + endfunction(python_pkg_alias) + python_pkg_alias(pGadgetron "sirf.pGadgetron") + python_pkg_alias(pSTIR "sirf.pSTIR") + python_pkg_alias(pUtilities "sirf.pUtilities") + python_pkg_alias(pygadgetron "sirf.pygadgetron") + python_pkg_alias(pystir "sirf.pystir") + python_pkg_alias(pyiutilities "sirf.pyiutilities") + # convert to python CSV tuple for setup.py configure_file + string(REPLACE ";" "', '" PYTHON_SETUP_PKGS_CSV "${PYTHON_SETUP_PKGS}") + set(PYTHON_SETUP_PKGS_CSV "'${PYTHON_SETUP_PKGS_CSV}'") + # message(STATUS "setup.py:pacakges:${PYTHON_SETUP_PKGS_CSV}") + + # Create setup.py + set(SETUP_PY_IN "${CMAKE_CURRENT_SOURCE_DIR}/SuperBuild/setup.py.in") + set(SETUP_PY "${PYTHON_DEST}/setup.py") + set(SETUP_PY_INIT "${PYTHON_DEST}/sirf/__init__.py") + message(STATUS "setup.py:${SETUP_PY}") + configure_file("${SETUP_PY_IN}" "${SETUP_PY}") + + # python setup.py build + add_custom_command(OUTPUT "${SETUP_PY_INIT}" + COMMAND "${CMAKE_COMMAND}" -E make_directory "${PYTHON_DEST}/sirf" + COMMAND "${CMAKE_COMMAND}" -E touch "${SETUP_PY_INIT}" + COMMAND "${PYTHON_EXECUTABLE}" setup.py build + DEPENDS "${SETUP_PY_IN}" + WORKING_DIRECTORY "${PYTHON_DEST}") + + add_custom_target(pybuild_sirf ALL DEPENDS ${SETUP_PY_INIT}) + + if (NOT CONDA_BUILD) + # python setup.py install + install(CODE "execute_process(COMMAND\n\ + \"${PYTHON_EXECUTABLE}\" setup.py install\n\ + WORKING_DIRECTORY \"${PYTHON_DEST}\")") + endif() +endif(PYTHONINTERP_FOUND) + + # add tests enable_testing() diff --git a/SuperBuild/External_Boost.cmake b/SuperBuild/External_Boost.cmake index e2ad6c73..6c78ca4c 100644 --- a/SuperBuild/External_Boost.cmake +++ b/SuperBuild/External_Boost.cmake @@ -43,7 +43,7 @@ if(NOT ( DEFINED "USE_SYSTEM_${externalProjName}" AND "${USE_SYSTEM_${externalPr mark_as_superbuild(Boost_NO_SYSTEM_PATHS) ### --- Project specific additions here - set(Boost_Install_Dir ${SUPERBUILD_INSTALL_DIR}) + set(${proj}_Install_Dir ${SUPERBUILD_INSTALL_DIR}) set(Boost_Configure_Script ${CMAKE_CURRENT_LIST_DIR}/External_Boost_configureboost.cmake) set(Boost_Build_Script ${CMAKE_CURRENT_LIST_DIR}/External_Boost_buildboost.cmake) diff --git a/SuperBuild/External_GTest.cmake b/SuperBuild/External_GTest.cmake index 45ef9bda..d993d83a 100644 --- a/SuperBuild/External_GTest.cmake +++ b/SuperBuild/External_GTest.cmake @@ -62,6 +62,7 @@ if(NOT ( DEFINED "USE_SYSTEM_${externalProjName}" AND "${USE_SYSTEM_${externalPr if(${USE_SYSTEM_${externalProjName}}) message(STATUS "USING the system ${externalProjName}, set GTEST_ROOT if needed.") find_package(${proj} ${${externalProjName}_REQUIRED_VERSION} REQUIRED) + get_filename_component(GTEST_ROOT ${GTEST_LIBRARIES} DIRECTORY) endif() ExternalProject_Add_Empty(${proj} DEPENDS "${${proj}_DEPENDENCIES}" ${${proj}_EP_ARGS_DIRS} diff --git a/SuperBuild/External_ISMRMRD.cmake b/SuperBuild/External_ISMRMRD.cmake index bb781589..c36024dd 100644 --- a/SuperBuild/External_ISMRMRD.cmake +++ b/SuperBuild/External_ISMRMRD.cmake @@ -56,6 +56,7 @@ if(NOT ( DEFINED "USE_SYSTEM_${externalProjName}" AND "${USE_SYSTEM_${externalPr endif() endif () + ExternalProject_Add(${proj} ${${proj}_EP_ARGS} ${${proj}_EP_ARGS_GIT} diff --git a/SuperBuild/__init__.py.in b/SuperBuild/__init__.py.in new file mode 100644 index 00000000..fb3e25f7 --- /dev/null +++ b/SuperBuild/__init__.py.in @@ -0,0 +1 @@ +from ${PY_PKG_OLD} import * diff --git a/SuperBuild/setup.py.in b/SuperBuild/setup.py.in new file mode 100755 index 00000000..aec1a3e3 --- /dev/null +++ b/SuperBuild/setup.py.in @@ -0,0 +1,40 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +try: + from setuptools import setup +except ImportError: + from distutils.core import setup + +__author__ = "Casper da Costa-Luis " +__version__ = "1.0.0" + + +setup( + name='sirf', + version=__version__, + description='CCP PET-MR SIRF', + license='Apache 2.0', + author='CCP PET-MR', + author_email='ccppetmr@stfc.ac.uk', + url='https://github.com/CCPPETMR/SIRF', + platforms=['any'], + package_data={'sirf': ['*.so']}, + packages=[${PYTHON_SETUP_PKGS_CSV}], + long_description='', + classifiers=[ + # Trove classifiers + # (https://pypi.python.org/pypi?%3Aaction=list_classifiers) + 'Development Status :: 5 - Production/Stable', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.6', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.2', + 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7' + ], + keywords='image reconstruction pet mr medical imaging', +) diff --git a/conda-recipe/build.sh b/conda-recipe/build.sh new file mode 100644 index 00000000..25ea890e --- /dev/null +++ b/conda-recipe/build.sh @@ -0,0 +1,72 @@ +#!/bin/bash +# +# Script to install/update the CCP-PETMR VM. It could also be used for any other system +# but will currently change your .sirfrc. This is to be avoided later on. +# +# Author: Edoardo Pasca +# Copyright 2016-2018 University College London +# Copyright 2016-2018 Rutherford Appleton Laboratory STFC +# +# This is software developed for the Collaborative Computational +# Project in Positron Emission Tomography and Magnetic Resonance imaging +# (http://www.ccppetmr.ac.uk/). + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0.txt +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +#========================================================================= + +#if [ -z "$SIRF_VERSION" ]; then +# echo "Need to set SIRF_VERSION" +# exit 1 +#fi + +mkdir "$SRC_DIR/build" +mkdir "$SRC_DIR/SIRF-SuperBuild" +cp -rv "$RECIPE_DIR/../" "$SRC_DIR/SIRF-SuperBuild" + +cd $SRC_DIR/build + +echo "$SRC_DIR/ccpi/Python" + +#site-packages ${SP_DIR}/sirf +cmake ../SIRF-SuperBuild \ + -DCMAKE_INSTALL_PREFIX=${PREFIX} \ + -DPYTHON_DEST_DIR=${PREFIX}/python\ + -USIRF_URL \ + -USIRF_TAG \ + -DSIRF_TAG=a9170557c0f883934033700c1dd312a3a74611d6\ + -USTIR_URL \ + -USTIR_TAG \ + -UGadgetron_URL \ + -UGadgetron_TAG \ + -UISMRMRD_URL \ + -UISMRMRD_TAG \ + -DBUILD_GADGETRON=On \ + -DUSE_SYSTEM_SWIG=On \ + -DUSE_SYSTEM_Boost=Off \ + -DUSE_SYSTEM_Armadillo=On \ + -DUSE_SYSTEM_FFTW3=On \ + -DUSE_SYSTEM_HDF5=ON \ + -DBUILD_siemens_to_ismrmrd=On \ + -DUSE_SYSTEM_GTEST=On\ + -DCONDA_BUILD=On + +make -j1 +cp ${PREFIX}/share/gadgetron/config/gadgetron.xml.example ${PREFIX}/share/gadgetron/config/gadgetron.xml + +cd ${PREFIX}/python +${PYTHON} setup.py install + +# add to +#echo "${PREFIX}/python" > ${PREFIX} +#${PREFIX}/python diff --git a/conda-recipe/meta.yaml b/conda-recipe/meta.yaml new file mode 100644 index 00000000..59e0fcd1 --- /dev/null +++ b/conda-recipe/meta.yaml @@ -0,0 +1,60 @@ +package: + name: sirf +# version: {{ environ['SIRF_VERSION'] }} + version: 1.0.0 + + +build: + preserve_egg_dir: False +# number: 0 + +requirements: + build: + #- boost ==1.64.0 + #- boost-cpp ==1.64.0 +# - boost +# - boost-cpp + - python 3.6 # [py36] + - python 2.7 # [py27] + - cmake >=3.1 + - vc 14 # [win and py36] + - vc 9 # [win and py27] + - numpy + - scipy + - matplotlib + - docopt + - h5py + - libxml2 + - psutil + - nose + - coverage + - fftw + - swig >=3 + - libxslt + - armadillo + - gtest + + + run: + - vc 14 # [win and py35] + - vc 9 # [win and py27] + - python 3.6 # [py36] + - python 2.7 # [py27] + #- boost-dev ==1.63 + - numpy + - scipy + - matplotlib + - docopt + - h5py + - psutil + - fftw + - libgcc-ng + - libstdcxx-ng + - openblas + - armadillo + - gtest + +about: + home: http://www.ccppetmr.ac.uk + license: Apache 2.0 license + summary: 'Synergistic Image Reconstruction Framework' diff --git a/conda/armadillo/build.sh b/conda/armadillo/build.sh new file mode 100644 index 00000000..893572a3 --- /dev/null +++ b/conda/armadillo/build.sh @@ -0,0 +1,72 @@ +#!/bin/bash +# +# Script to install/update the CCP-PETMR VM. It could also be used for any other system +# but will currently change your .sirfrc. This is to be avoided later on. +# +# Author: Edoardo Pasca +# Copyright 2016-2018 University College London +# Copyright 2016-2018 Rutherford Appleton Laboratory STFC +# +# This is software developed for the Collaborative Computational +# Project in Positron Emission Tomography and Magnetic Resonance imaging +# (http://www.ccppetmr.ac.uk/). + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0.txt +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +#========================================================================= + +#if [ -z "$SIRF_VERSION" ]; then +# echo "Need to set SIRF_VERSION" +# exit 1 +#fi + +mkdir "$SRC_DIR/build" +mkdir "$SRC_DIR/SIRF-SuperBuild" +cp -rv "$RECIPE_DIR/../../" "$SRC_DIR/SIRF-SuperBuild" + +cd $SRC_DIR/build + + +#site-packages ${SP_DIR}/sirf +cmake ../SIRF-SuperBuild \ + -DCMAKE_INSTALL_PREFIX=${PREFIX} \ + -DPYTHON_DEST_DIR=${PREFIX}/python\ + -USIRF_URL \ + -USIRF_TAG \ + -DSIRF_TAG=v2.0.0\ + -USTIR_URL \ + -USTIR_TAG \ + -UGadgetron_URL \ + -UGadgetron_TAG \ + -UISMRMRD_URL \ + -UISMRMRD_TAG \ + -DBUILD_GADGETRON=On \ + -DUSE_SYSTEM_SWIG=Off \ + -DUSE_SYSTEM_Boost=On \ + -DUSE_SYSTEM_Armadillo=Off \ + -DUSE_SYSTEM_FFTW3=On \ + -DUSE_SYSTEM_HDF5=ON \ + -DBUILD_siemens_to_ismrmrd=Off \ + -DUSE_SYSTEM_GTest=Off\ + -DCONDA_BUILD=On + +make -j1 Armadillo + +#cp ${PREFIX}/share/gadgetron/config/gadgetron.xml.example ${PREFIX}/share/gadgetron/config/gadgetron.xml + +#cd ${PREFIX}/python +#${PYTHON} setup.py install + +# add to +#echo "${PREFIX}/python" > ${PREFIX} +#${PREFIX}/python diff --git a/conda/armadillo/conda_build_config.yaml b/conda/armadillo/conda_build_config.yaml new file mode 100644 index 00000000..ec2a5300 --- /dev/null +++ b/conda/armadillo/conda_build_config.yaml @@ -0,0 +1,4 @@ +python: + - 2.7 +numpy: + - 1.11 diff --git a/conda/armadillo/meta.yaml b/conda/armadillo/meta.yaml new file mode 100644 index 00000000..adea62e9 --- /dev/null +++ b/conda/armadillo/meta.yaml @@ -0,0 +1,59 @@ +package: + name: armadillo + version: 7.800.0 + + +build: + preserve_egg_dir: False +# number: 0 + +requirements: + build: + #- boost ==1.64.0 + - boost-cpp >=1.63.0 + - boost >=1.63 +# - boost-cpp +# - python 3.6 # [py36] +# - python 2.7 # [py27] + - cmake >=3.1 + - vc 14 # [win and py36] + - vc 9 # [win and py27] +# - numpy +# - scipy +# - matplotlib +# - docopt + - h5py +# - libxml2 + - psutil + - nose + - coverage + - fftw +# - swig >=3 +# - libxslt +# - armadillo +# - gtest + + + run: + - boost >=1.63 + - vc 14 # [win and py35] + - vc 9 # [win and py27] +# - python 3.6 # [py36] +# - python 2.7 # [py27] +# - numpy +# - scipy +# - matplotlib +# - docopt + - h5py + - psutil + - fftw + - libgcc-ng + - libstdcxx-ng + - openblas +# - armadillo +# - gtest + +about: + home: http://www.ccppetmr.ac.uk + license: Apache 2.0 license + summary: 'Synergistic Image Reconstruction Framework' diff --git a/conda/boost/build.sh b/conda/boost/build.sh new file mode 100644 index 00000000..13f49e6d --- /dev/null +++ b/conda/boost/build.sh @@ -0,0 +1,72 @@ +#!/bin/bash +# +# Script to install/update the CCP-PETMR VM. It could also be used for any other system +# but will currently change your .sirfrc. This is to be avoided later on. +# +# Author: Edoardo Pasca +# Copyright 2016-2018 University College London +# Copyright 2016-2018 Rutherford Appleton Laboratory STFC +# +# This is software developed for the Collaborative Computational +# Project in Positron Emission Tomography and Magnetic Resonance imaging +# (http://www.ccppetmr.ac.uk/). + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0.txt +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +#========================================================================= + +#if [ -z "$SIRF_VERSION" ]; then +# echo "Need to set SIRF_VERSION" +# exit 1 +#fi + +mkdir "$SRC_DIR/build" +mkdir "$SRC_DIR/SIRF-SuperBuild" +cp -rv "$RECIPE_DIR/../../" "$SRC_DIR/SIRF-SuperBuild" + +cd $SRC_DIR/build + + +#site-packages ${SP_DIR}/sirf +cmake ../SIRF-SuperBuild \ + -DCMAKE_INSTALL_PREFIX=${PREFIX} \ + -DPYTHON_DEST_DIR=${PREFIX}/python\ + -USIRF_URL \ + -USIRF_TAG \ + -DSIRF_TAG=v2.1.0\ + -USTIR_URL \ + -USTIR_TAG \ + -UGadgetron_URL \ + -UGadgetron_TAG \ + -UISMRMRD_URL \ + -UISMRMRD_TAG \ + -DBUILD_GADGETRON=Off \ + -DUSE_SYSTEM_SWIG=On \ + -DUSE_SYSTEM_Boost=Off \ + -DUSE_SYSTEM_Armadillo=On \ + -DUSE_SYSTEM_FFTW3=On \ + -DUSE_SYSTEM_HDF5=ON \ + -DBUILD_siemens_to_ismrmrd=Off \ + -DUSE_SYSTEM_GTEST=On\ + -DCONDA_BUILD=On + +make -j2 Boost + +#cp ${PREFIX}/share/gadgetron/config/gadgetron.xml.example ${PREFIX}/share/gadgetron/config/gadgetron.xml + +#cd ${PREFIX}/python +#${PYTHON} setup.py install + +# add to +#echo "${PREFIX}/python" > ${PREFIX} +#${PREFIX}/python diff --git a/conda/boost/meta.yaml b/conda/boost/meta.yaml new file mode 100644 index 00000000..7c0e2910 --- /dev/null +++ b/conda/boost/meta.yaml @@ -0,0 +1,49 @@ +package: + name: boost +# version: {{ environ['SIRF_VERSION'] }} + version: 1.65.1 + + +build: + preserve_egg_dir: False +# number: 0 + missing_dso_whitelist: + - $RPATH/libc.so.6 # [linux] + - $RPATH/libm.so.6 # [linux] + - $RPATH/libdl.so.2 # [linux] + - $RPATH/libpthread.so.0 # [linux] + - $RPATH/librt.so.1 # [linux] + - $RPATH/libicuuc.so.60 #[linux] + - $RPATH/libicui18n.so.60 #[linux] + +requirements: + build: + - cmake >=3.1 + - vc 14 # [win and py36] + - vc 9 # [win and py27] + - h5py +# - libxml2 + - psutil + - nose + - coverage + - fftw + - swig >=3 +# - libxslt +# - armadillo +# - gtest + + + run: + - vc 14 # [win and py35] + - vc 9 # [win and py27] + - h5py + - psutil + - fftw + - libgcc-ng + - libstdcxx-ng + - openblas + +about: + home: http://www.ccppetmr.ac.uk + license: Apache 2.0 license + summary: 'Synergistic Image Reconstruction Framework' diff --git a/conda/gadgetron/build.sh b/conda/gadgetron/build.sh new file mode 100644 index 00000000..81b7d2b7 --- /dev/null +++ b/conda/gadgetron/build.sh @@ -0,0 +1,77 @@ +#!/bin/bash +# +# Script to install/update the CCP-PETMR VM. It could also be used for any other system +# but will currently change your .sirfrc. This is to be avoided later on. +# +# Author: Edoardo Pasca +# Copyright 2016-2018 University College London +# Copyright 2016-2018 Rutherford Appleton Laboratory STFC +# +# This is software developed for the Collaborative Computational +# Project in Positron Emission Tomography and Magnetic Resonance imaging +# (http://www.ccppetmr.ac.uk/). + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0.txt +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +#========================================================================= + +#if [ -z "$SIRF_VERSION" ]; then +# echo "Need to set SIRF_VERSION" +# exit 1 +#fi + +mkdir "$SRC_DIR/build" +mkdir "$SRC_DIR/SIRF-SuperBuild" +#cp -rv "$RECIPE_DIR/../../" "$SRC_DIR/SIRF-SuperBuild" +rsync -rv --exclude=.git "$RECIPE_DIR/../../" "$SRC_DIR/SIRF-SuperBuild" + + +cd $SRC_DIR/build + + +#site-packages ${SP_DIR}/sirf +cmake ../SIRF-SuperBuild \ + -DCMAKE_INSTALL_PREFIX=${PREFIX} \ + -DPYTHON_DEST_DIR=${PREFIX}/python\ + -USIRF_URL \ + -USIRF_TAG \ + -DSIRF_TAG=v2.0.0\ + -USTIR_URL \ + -USTIR_TAG \ + -UGadgetron_URL \ + -UGadgetron_TAG \ + -UISMRMRD_URL \ + -UISMRMRD_TAG \ + -DBUILD_GADGETRON=On \ + -DUSE_SYSTEM_SWIG=On \ + -DUSE_SYSTEM_Boost=On \ + -DUSE_SYSTEM_Armadillo=On \ + -DUSE_SYSTEM_ISMRMRD=ON\ + -DUSE_SYSTEM_STIR=Off\ + -DUSE_SYSTEM_FFTW3=On \ + -DUSE_SYSTEM_HDF5=ON \ + -DBUILD_siemens_to_ismrmrd=Off \ + -DUSE_SYSTEM_GTest=On\ + -DUSE_SYSTEM_ACE=ON \ + -DCONDA_BUILD=On + +make -j1 Gadgetron VERBOSE=1 + +cp ${PREFIX}/share/gadgetron/config/gadgetron.xml.example ${PREFIX}/share/gadgetron/config/gadgetron.xml + +#cd ${PREFIX}/python +#${PYTHON} setup.py install + +# add to +#echo "${PREFIX}/python" > ${PREFIX} +#${PREFIX}/python diff --git a/conda/gadgetron/meta.yaml b/conda/gadgetron/meta.yaml new file mode 100644 index 00000000..cf700c5e --- /dev/null +++ b/conda/gadgetron/meta.yaml @@ -0,0 +1,79 @@ +package: + name: gadgetron +# version: {{ environ['SIRF_VERSION'] }} + version: b6191eaaa72ccca6c6a5fe4c0fa3319694f512ab + + +build: + preserve_egg_dir: False +# number: 0 + missing_dso_whitelist: + - $RPATH/libc.so.6 # [linux] + - $RPATH/libm.so.6 # [linux] + - $RPATH/libdl.so.2 # [linux] + - $RPATH/libpthread.so.0 # [linux] + - $RPATH/librt.so.1 # [linux] + - $RPATH/libicuuc.so.60 #[linux] + - $RPATH/libicui18n.so.60 #[linux] + - /lib64/ld-linux-x86-64.so.2 + + +requirements: + build: + #- boost ==1.64.0 + #- boost-cpp ==1.64.0 + - boost >=1.63 + - boost-cpp >=1.63 +# - boost-cpp +# - python 3.6 # [py36] +# - python 2.7 # [py27] + - cmake >=3.1 + - vc 14 # [win and py36] + - vc 9 # [win and py27] +# - numpy +# - scipy +# - matplotlib +# - docopt + # - h5py +# - libxml2 + # - psutil + - nose + - coverage + - fftw + - swig >=3 +# - libxslt + - armadillo + - gtest + - ismrmrd + - ace + + + run: + - vc 14 # [win and py36] + - vc 9 # [win and py27] +# - python 3.6 # [py36] +# - python 2.7 # [py27] +# - numpy +# - scipy +# - matplotlib +# - docopt + - boost >=1.63 + - h5py + - psutil + - fftw + - libgcc-ng + - libstdcxx-ng + - openblas + - libopenblas + - armadillo + - gtest + - ismrmrd + - ace + - cudatoolkit =10.1 + - _openmp_mutex # [linux] + - hdf5 + +about: + home: http://www.ccppetmr.ac.uk + license: Apache 2.0 license + summary: 'Synergistic Image Reconstruction Framework' diff --git a/conda/gtest/build.sh b/conda/gtest/build.sh new file mode 100644 index 00000000..744210d1 --- /dev/null +++ b/conda/gtest/build.sh @@ -0,0 +1,76 @@ +#!/bin/bash +# +# Script to install/update the CCP-PETMR VM. It could also be used for any other system +# but will currently change your .sirfrc. This is to be avoided later on. +# +# Author: Edoardo Pasca +# Copyright 2016-2018 University College London +# Copyright 2016-2018 Rutherford Appleton Laboratory STFC +# +# This is software developed for the Collaborative Computational +# Project in Positron Emission Tomography and Magnetic Resonance imaging +# (http://www.ccppetmr.ac.uk/). + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0.txt +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +#========================================================================= + +#if [ -z "$SIRF_VERSION" ]; then +# echo "Need to set SIRF_VERSION" +# exit 1 +#fi + +mkdir "$SRC_DIR/build" +mkdir "$SRC_DIR/SIRF-SuperBuild" +#cp -rv "$RECIPE_DIR/../../" "$SRC_DIR/SIRF-SuperBuild" +rsync -rv --exclude=.git "$RECIPE_DIR/../../" "$SRC_DIR/SIRF-SuperBuild" + + +cd $SRC_DIR/build + + +#site-packages ${SP_DIR}/sirf +cmake ../SIRF-SuperBuild \ + -DCMAKE_INSTALL_PREFIX=${PREFIX} \ + -DPYTHON_DEST_DIR=${PREFIX}/python\ + -USIRF_URL \ + -USIRF_TAG \ + -DSIRF_TAG=v2.0.0\ + -USTIR_URL \ + -USTIR_TAG \ + -UGadgetron_URL \ + -UGadgetron_TAG \ + -UISMRMRD_URL \ + -UISMRMRD_TAG \ + -DBUILD_GADGETRON=Off \ + -DUSE_SYSTEM_SWIG=On \ + -DUSE_SYSTEM_Boost=On \ + -DUSE_SYSTEM_Armadillo=On \ + -DUSE_SYSTEM_ISMRMRD=ON\ + -DUSE_SYSTEM_STIR=On\ + -DUSE_SYSTEM_FFTW3=On \ + -DUSE_SYSTEM_HDF5=ON \ + -DBUILD_siemens_to_ismrmrd=Off \ + -DUSE_SYSTEM_GTest=Off\ + -DCONDA_BUILD=On + +make -j1 GTest VERBOSE=1 + +#cp ${PREFIX}/share/gadgetron/config/gadgetron.xml.example ${PREFIX}/share/gadgetron/config/gadgetron.xml + +#cd ${PREFIX}/python +#${PYTHON} setup.py install + +# add to +#echo "${PREFIX}/python" > ${PREFIX} +#${PREFIX}/python diff --git a/conda/gtest/meta.yaml b/conda/gtest/meta.yaml new file mode 100644 index 00000000..b4a6a744 --- /dev/null +++ b/conda/gtest/meta.yaml @@ -0,0 +1,62 @@ +package: + name: gtest +# version: {{ environ['SIRF_VERSION'] }} + version: 1.8.0 + + +build: + preserve_egg_dir: False +# number: 0 + +requirements: + build: + #- boost ==1.64.0 + #- boost-cpp ==1.64.0 + - boost >=1.63 + - boost-cpp >=1.63 +# - boost-cpp +# - python 3.6 # [py36] +# - python 2.7 # [py27] + - cmake >=3.1 + - vc 14 # [win and py36] + - vc 9 # [win and py27] +# - numpy +# - scipy +# - matplotlib +# - docopt + - h5py +# - libxml2 + - psutil + - nose + - coverage + - fftw + - swig >=3 +# - libxslt + - armadillo + - ismrmrd + + + run: + - vc 14 # [win and py35] + - vc 9 # [win and py27] +# - python 3.6 # [py36] +# - python 2.7 # [py27] +# - numpy +# - scipy +# - matplotlib +# - docopt + - boost >=1.63 + - boost-cpp >=1.63 + - h5py + - psutil + - fftw + - libgcc-ng + - libstdcxx-ng + - openblas + - armadillo + - ismrmrd + +about: + home: http://www.ccppetmr.ac.uk + license: Apache 2.0 license + summary: 'Synergistic Image Reconstruction Framework' diff --git a/conda/hdf5/build.sh b/conda/hdf5/build.sh new file mode 100644 index 00000000..f34bf955 --- /dev/null +++ b/conda/hdf5/build.sh @@ -0,0 +1,79 @@ +#!/bin/bash +# +# Script to install/update the CCP-PETMR VM. It could also be used for any other system +# but will currently change your .sirfrc. This is to be avoided later on. +# +# Author: Edoardo Pasca +# Copyright 2016-2018 University College London +# Copyright 2016-2018 Rutherford Appleton Laboratory STFC +# +# This is software developed for the Collaborative Computational +# Project in Positron Emission Tomography and Magnetic Resonance imaging +# (http://www.ccppetmr.ac.uk/). + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0.txt +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +#========================================================================= + +#if [ -z "$SIRF_VERSION" ]; then +# echo "Need to set SIRF_VERSION" +# exit 1 +#fi + +mkdir "$SRC_DIR/build" +mkdir "$SRC_DIR/SIRF-SuperBuild" +#cp -rv "$RECIPE_DIR/../../" "$SRC_DIR/SIRF-SuperBuild" +rsync -rv --exclude=.git "$RECIPE_DIR/../../" "$SRC_DIR/SIRF-SuperBuild" + + +cd $SRC_DIR/build + + +#site-packages ${SP_DIR}/sirf +cmake ../SIRF-SuperBuild \ + -DCMAKE_INSTALL_PREFIX=${PREFIX} \ + -DPYTHON_DEST_DIR=${SP_DIR}\ + -USIRF_URL \ + -USIRF_TAG \ + -DSIRF_TAG=v2.0.0\ + -USTIR_URL \ + -USTIR_TAG \ + -UGadgetron_URL \ + -UGadgetron_TAG \ + -UISMRMRD_URL \ + -UISMRMRD_TAG \ + -DBUILD_GADGETRON=Off \ + -DUSE_SYSTEM_SWIG=On \ + -DUSE_SYSTEM_Boost=On \ + -DUSE_SYSTEM_Armadillo=On \ + -DUSE_SYSTEM_ISMRMRD=Off\ + -DUSE_SYSTEM_STIR=Off\ + -DUSE_SYSTEM_FFTW3=On \ + -DUSE_SYSTEM_HDF5=OFF \ + -DBUILD_siemens_to_ismrmrd=Off \ + -DUSE_SYSTEM_GTest=OFF\ + -DUSE_ITK=ON\ + -DUSE_SYSTEM_ITK=OFF\ + -DUSE_SYSTEM_NIFTYREG=OFF\ + -DCONDA_BUILD=On + +make -j2 HDF5 + +#cp ${PREFIX}/share/gadgetron/config/gadgetron.xml.example ${PREFIX}/share/gadgetron/config/gadgetron.xml + +#cd ${PREFIX}/python +#${PYTHON} setup.py install + +# add to +#echo "${PREFIX}/python" > ${PREFIX} +#${PREFIX}/python diff --git a/conda/hdf5/conda_build_config.yaml b/conda/hdf5/conda_build_config.yaml new file mode 100644 index 00000000..ec2a5300 --- /dev/null +++ b/conda/hdf5/conda_build_config.yaml @@ -0,0 +1,4 @@ +python: + - 2.7 +numpy: + - 1.11 diff --git a/conda/hdf5/meta.yaml b/conda/hdf5/meta.yaml new file mode 100644 index 00000000..d9029aa4 --- /dev/null +++ b/conda/hdf5/meta.yaml @@ -0,0 +1,40 @@ +package: + name: hdf5 +# version: {{ environ['SIRF_VERSION'] }} + version: 1.10.1 + + +build: + preserve_egg_dir: False + number: 0 + missing_dso_whitelist: + - $RPATH/libc.so.6 # [linux] + - $RPATH/libm.so.6 # [linux] + - $RPATH/libdl.so.2 # [linux] + +requirements: + build: + - boost >=1.63 + - boost-cpp >=1.63 + - cmake >=3.1 + - vc 14 # [win and py36] + - vc 9 # [win and py27] + - nose + - coverage + - fftw + # - swig >=3 + + + run: + # - boost >=1.63 + # - boost-cpp >=1.63 + # - fftw + - vc 14 # [win and py35] + - vc 9 # [win and py27] + - libstdcxx-ng # [unix] + - libgcc-ng # [unix] + +about: + home: http://www.ccppetmr.ac.uk + license: Apache 2.0 license + summary: 'Synergistic Image Reconstruction Framework' diff --git a/conda/ismrmrd/build.sh b/conda/ismrmrd/build.sh new file mode 100644 index 00000000..636096e4 --- /dev/null +++ b/conda/ismrmrd/build.sh @@ -0,0 +1,72 @@ +#!/bin/bash +# +# Script to install/update the CCP-PETMR VM. It could also be used for any other system +# but will currently change your .sirfrc. This is to be avoided later on. +# +# Author: Edoardo Pasca +# Copyright 2016-2018 University College London +# Copyright 2016-2018 Rutherford Appleton Laboratory STFC +# +# This is software developed for the Collaborative Computational +# Project in Positron Emission Tomography and Magnetic Resonance imaging +# (http://www.ccppetmr.ac.uk/). + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0.txt +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +#========================================================================= + +#if [ -z "$SIRF_VERSION" ]; then +# echo "Need to set SIRF_VERSION" +# exit 1 +#fi + +mkdir "$SRC_DIR/build" +mkdir "$SRC_DIR/SIRF-SuperBuild" +cp -rv "$RECIPE_DIR/../../" "$SRC_DIR/SIRF-SuperBuild" + +cd $SRC_DIR/build + + +#site-packages ${SP_DIR}/sirf +cmake ../SIRF-SuperBuild \ + -DCMAKE_INSTALL_PREFIX=${PREFIX} \ + -DPYTHON_DEST_DIR=${PREFIX}/python\ + -USIRF_URL \ + -USIRF_TAG \ + -DSIRF_TAG=v2.1.0\ + -USTIR_URL \ + -USTIR_TAG \ + -UGadgetron_URL \ + -UGadgetron_TAG \ + -UISMRMRD_URL \ + -UISMRMRD_TAG \ + -DBUILD_GADGETRON=Off \ + -DUSE_SYSTEM_SWIG=On \ + -DUSE_SYSTEM_Boost=On \ + -DUSE_SYSTEM_Armadillo=On \ + -DUSE_SYSTEM_FFTW3=On \ + -DUSE_SYSTEM_HDF5=ON \ + -DBUILD_siemens_to_ismrmrd=On \ + -DUSE_SYSTEM_GTest=On\ + -DCONDA_BUILD=On + +make -j1 ISMRMRD VERBOSE=1 + +#cp ${PREFIX}/share/gadgetron/config/gadgetron.xml.example ${PREFIX}/share/gadgetron/config/gadgetron.xml + +#cd ${PREFIX}/python +#${PYTHON} setup.py install + +# add to +#echo "${PREFIX}/python" > ${PREFIX} +#${PREFIX}/python diff --git a/conda/ismrmrd/meta.yaml b/conda/ismrmrd/meta.yaml new file mode 100644 index 00000000..d9c0e98f --- /dev/null +++ b/conda/ismrmrd/meta.yaml @@ -0,0 +1,69 @@ +package: + name: ismrmrd +# version: {{ environ['SIRF_VERSION'] }} + version: v1.4.1 + + +build: + preserve_egg_dir: False +# number: 0 + missing_dso_whitelist: + - $RPATH/libc.so.6 # [linux] + - $RPATH/libm.so.6 # [linux] + - $RPATH/libdl.so.2 # [linux] + - $RPATH/libpthread.so.0 # [linux] + - $RPATH/librt.so.1 # [linux] + - $RPATH/libicuuc.so.60 #[linux] + - $RPATH/libicui18n.so.60 #[linux] + + +requirements: + build: + #- boost ==1.64.0 + #- boost-cpp ==1.64.0 + - boost >=1.63 + #- boost-cpp >=1.63 +# - python 3.6 # [py36] +# - python 2.7 # [py27] + - cmake >=3.1 + - vc 14 # [win and py36] + - vc 9 # [win and py27] +# - numpy +# - scipy +# - matplotlib +# - docopt + - h5py +# - libxml2 + - psutil + - nose + - coverage + - fftw + - swig >=3 +# - libxslt +# - armadillo +# - gtest + + + run: + - vc 14 # [win and py35] + - vc 9 # [win and py27] +# - python 3.6 # [py36] +# - python 2.7 # [py27] +# - numpy +# - scipy +# - matplotlib +# - docopt + - boost >=1.63 + - h5py + - psutil + - fftw + - libgcc-ng + - libstdcxx-ng + - openblas +# - armadillo +# - gtest + +about: + home: http://www.ccppetmr.ac.uk + license: Apache 2.0 license + summary: 'Synergistic Image Reconstruction Framework' diff --git a/conda/niftyreg/build.sh b/conda/niftyreg/build.sh new file mode 100644 index 00000000..c39c779f --- /dev/null +++ b/conda/niftyreg/build.sh @@ -0,0 +1,78 @@ +#!/bin/bash +# +# Script to install/update the CCP-PETMR VM. It could also be used for any other system +# but will currently change your .sirfrc. This is to be avoided later on. +# +# Author: Edoardo Pasca +# Copyright 2016-2018 University College London +# Copyright 2016-2018 Rutherford Appleton Laboratory STFC +# +# This is software developed for the Collaborative Computational +# Project in Positron Emission Tomography and Magnetic Resonance imaging +# (http://www.ccppetmr.ac.uk/). + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0.txt +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +#========================================================================= + +#if [ -z "$SIRF_VERSION" ]; then +# echo "Need to set SIRF_VERSION" +# exit 1 +#fi + +mkdir "$SRC_DIR/build" +mkdir "$SRC_DIR/SIRF-SuperBuild" +#cp -rv "$RECIPE_DIR/../../" "$SRC_DIR/SIRF-SuperBuild" +rsync -rv --exclude=.git "$RECIPE_DIR/../../" "$SRC_DIR/SIRF-SuperBuild" + + +cd $SRC_DIR/build + + +#site-packages ${SP_DIR}/sirf +cmake ../SIRF-SuperBuild \ + -DCMAKE_INSTALL_PREFIX=${PREFIX} \ + -DPYTHON_DEST_DIR=${PREFIX}/python\ + -USIRF_URL \ + -USIRF_TAG \ + -DSIRF_TAG=v2.1.0\ + -USTIR_URL \ + -USTIR_TAG \ + -UGadgetron_URL \ + -UGadgetron_TAG \ + -UISMRMRD_URL \ + -UISMRMRD_TAG \ + -DBUILD_GADGETRON=On \ + -DUSE_SYSTEM_SWIG=On \ + -DUSE_SYSTEM_Boost=On \ + -DUSE_SYSTEM_Armadillo=On \ + -DUSE_SYSTEM_ISMRMRD=ON\ + -DUSE_SYSTEM_STIR=Off\ + -DUSE_SYSTEM_FFTW3=On \ + -DUSE_SYSTEM_HDF5=ON \ + -DBUILD_siemens_to_ismrmrd=Off \ + -DUSE_SYSTEM_GTest=On\ + -DUSE_ITK=OFF\ + -DUSE_SYSTEM_ITK=ON\ + -DCONDA_BUILD=On + +make -j2 NIFTYREG + +#cp ${PREFIX}/share/gadgetron/config/gadgetron.xml.example ${PREFIX}/share/gadgetron/config/gadgetron.xml + +#cd ${PREFIX}/python +#${PYTHON} setup.py install + +# add to +#echo "${PREFIX}/python" > ${PREFIX} +#${PREFIX}/python diff --git a/conda/niftyreg/meta.yaml b/conda/niftyreg/meta.yaml new file mode 100644 index 00000000..1de42586 --- /dev/null +++ b/conda/niftyreg/meta.yaml @@ -0,0 +1,72 @@ +package: + name: niftyreg +# version: {{ environ['SIRF_VERSION'] }} + version: 99d584e2b8ea0bffe7e65e40c8dc818751782d92 + + +build: + preserve_egg_dir: False +# number: 0 + missing_dso_whitelist: + - $RPATH/libc.so.6 # [linux] + - $RPATH/libm.so.6 # [linux] + - $RPATH/libdl.so.2 # [linux] + - $RPATH/libpthread.so.0 # [linux] + - $RPATH/librt.so.1 # [linux] + - $RPATH/libicuuc.so.60 #[linux] + - $RPATH/libicui18n.so.60 #[linux] + + +requirements: + build: + #- boost ==1.64.0 + #- boost-cpp ==1.64.0 + - boost >=1.63 +# - boost-cpp +# - python 3.6 # [py36] +# - python 2.7 # [py27] + - cmake >=3.1 + - vc 14 # [win and py36] + - vc 9 # [win and py27] +# - numpy +# - scipy +# - matplotlib +# - docopt +# - h5py +# - libxml2 + - psutil + - nose + - coverage +# - fftw +# - swig >=3 +# - libxslt +#- armadillo + - gtest + - ismrmrd + - _openmp_mutex # [linux] + + + run: + - _openmp_mutex # [linux] + - vc 14 # [win and py35] + - vc 9 # [win and py27] +# - python 3.6 # [py36] +# - python 2.7 # [py27] +# - numpy +# - scipy +# - matplotlib +# - docopt +# - boost >=1.63 +# - psutil +# - fftw + - libgcc-ng + - libstdcxx-ng + - ismrmrd + - _openmp_mutex # [linux] + # - openblas + # - itk + +about: + home: http://www.ccppetmr.ac.uk + license: Apache 2.0 license + summary: 'Synergistic Image Reconstruction Framework' diff --git a/conda/sirf/build.sh b/conda/sirf/build.sh new file mode 100644 index 00000000..ef2d4645 --- /dev/null +++ b/conda/sirf/build.sh @@ -0,0 +1,114 @@ +#!/bin/bash +# +# Script to install/update the CCP-PETMR VM. It could also be used for any other system +# but will currently change your .sirfrc. This is to be avoided later on. +# +# Author: Edoardo Pasca +# Copyright 2016-2018 University College London +# Copyright 2016-2018 Rutherford Appleton Laboratory STFC +# +# This is software developed for the Collaborative Computational +# Project in Positron Emission Tomography and Magnetic Resonance imaging +# (http://www.ccppetmr.ac.uk/). + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0.txt +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +#========================================================================= + +#if [ -z "$SIRF_VERSION" ]; then +# echo "Need to set SIRF_VERSION" +# exit 1 +#fi + +mkdir "$SRC_DIR/build" +mkdir "$SRC_DIR/SIRF-SuperBuild" +#cp -rv "$RECIPE_DIR/../../" "$SRC_DIR/SIRF-SuperBuild" +rsync -rv --exclude=.git "$RECIPE_DIR/../../" "$SRC_DIR/SIRF-SuperBuild" + + +cd $SRC_DIR/build + + +#site-packages ${SP_DIR}/sirf +cmake ../SIRF-SuperBuild \ + -DCMAKE_INSTALL_PREFIX=${PREFIX} \ + -DPYTHON_DEST_DIR=${SP_DIR}\ + -USIRF_URL \ + -USIRF_TAG \ + -DSIRF_TAG=v2.1.0\ + -USTIR_URL \ + -USTIR_TAG \ + -UGadgetron_URL \ + -UGadgetron_TAG \ + -UISMRMRD_URL \ + -UISMRMRD_TAG \ + -DBUILD_GADGETRON=Off \ + -DUSE_SYSTEM_SWIG=On \ + -DUSE_SYSTEM_Boost=On \ + -DUSE_SYSTEM_Armadillo=On \ + -DUSE_SYSTEM_ISMRMRD=ON\ + -DUSE_SYSTEM_STIR=Off\ + -DUSE_SYSTEM_FFTW3=On \ + -DUSE_SYSTEM_HDF5=ON \ + -DBUILD_siemens_to_ismrmrd=Off \ + -DUSE_SYSTEM_GTest=On\ + -DUSE_ITK=ON\ + -DUSE_SYSTEM_ITK=OFF\ + -DUSE_SYSTEM_NIFTYREG=OFF\ + -DCONDA_BUILD=On + +make -j2 NIFTYREG +make -j2 STIR +make -j1 SIRF + +# remove stuff installed by STIR +rm ${PREFIX}/lib/libdata_buildblock.a +rm ${PREFIX}/lib/libeval_buildblock.a +rm ${PREFIX}/lib/libnumerics_buildblock.a +rm ${PREFIX}/lib/libdisplay.a +rm ${PREFIX}/lib/libmodelling_buildblock.a +rm ${PREFIX}/lib/libanalytic_FBP2D.a +rm ${PREFIX}/lib/libiterative_KOSMAPOSL.a +rm ${PREFIX}/lib/libiterative_OSMAPOSL.a +rm ${PREFIX}/lib/libanalytic_FBP3DRP.a +rm ${PREFIX}/lib/libiterative_OSSPS.a +rm ${PREFIX}/lib/libShape_buildblock.a +rm ${PREFIX}/lib/libspatial_transformation_buildblock.a +rm ${PREFIX}/lib/libscatter_buildblock.a +rm ${PREFIX}/lib/liblistmode_buildblock.a +rm ${PREFIX}/lib/libIO.a +rm ${PREFIX}/lib/librecon_buildblock.a +rm ${PREFIX}/lib/libbuildblock.a +rm ${PREFIX}/lib/cmake/FindRDF.cmake +rm ${PREFIX}/lib/cmake/FindAVW.cmake +rm ${PREFIX}/lib/cmake/FindLLN.cmake +rm ${PREFIX}/lib/cmake/FindNumpy.cmake +rm ${PREFIX}/lib/cmake/STIRConfigVersion.cmake +rm ${PREFIX}/lib/cmake/FindAllHeaderFiles.cmake +rm ${PREFIX}/lib/cmake/FindCERN_ROOT.cmake +rm ${PREFIX}/lib/cmake/STIRConfig.cmake +rm ${PREFIX}/lib/cmake/STIRTargets.cmake +rm ${PREFIX}/lib/cmake/STIRTargets-release.cmake +rm -rf ${PREFIX}/include/stir +rm -rf ${PREFIX}/share/stir +rm -rf ${PREFIX}/include/stir_experimental + + +#cp ${PREFIX}/share/gadgetron/config/gadgetron.xml.example ${PREFIX}/share/gadgetron/config/gadgetron.xml + +#cd ${PREFIX}/python +#${PYTHON} setup.py install + +# add to +#echo "${PREFIX}/python" > ${PREFIX} +#${PREFIX}/python diff --git a/conda/sirf/conda_build_config.yaml b/conda/sirf/conda_build_config.yaml new file mode 100644 index 00000000..ec2a5300 --- /dev/null +++ b/conda/sirf/conda_build_config.yaml @@ -0,0 +1,4 @@ +python: + - 2.7 +numpy: + - 1.11 diff --git a/conda/sirf/meta.yaml b/conda/sirf/meta.yaml new file mode 100644 index 00000000..70cd2673 --- /dev/null +++ b/conda/sirf/meta.yaml @@ -0,0 +1,80 @@ +package: + name: sirf +# version: {{ environ['SIRF_VERSION'] }} + version: 2.1.0 + + +build: + preserve_egg_dir: False + number: 0 + missing_dso_whitelist: + - $RPATH/libc.so.6 # [linux] + - $RPATH/libm.so.6 # [linux] + - $RPATH/libdl.so.2 # [linux] + - $RPATH/libpthread.so.0 # [linux] + - $RPATH/librt.so.1 # [linux] + - $RPATH/libicuuc.so.60 #[linux] + - $RPATH/libicui18n.so.60 #[linux] + + +requirements: + build: + #- boost ==1.64.0 + #- boost-cpp ==1.64.0 + - boost >=1.63 +# - boost-cpp + - python + - {{ pin_compatible('numpy', max_pin='x.x') }} +# - python 2.7 # [py27] + - cmake >=3.1 + - vc 14 # [win and py36] + - vc 9 # [win and py27] +# - scipy +# - matplotlib +# - docopt + - h5py + - hdf5 ==1.10.1 +# - libxml2 + - psutil + - nose + - coverage + - fftw + - swig >=3 +# - libxslt +# - armadillo + - gtest + - ismrmrd + + + run: + - vc 14 # [win and py35] + - vc 9 # [win and py27] + - python + - {{ pin_compatible('numpy', max_pin='x.x') }} + - scipy + - matplotlib + - docopt + - gadgetron ==b6191eaaa72ccca6c6a5fe4c0fa3319694f512ab + - h5py + # - stir + # - niftyreg +# - boost >=1.63 +# - h5py +# - psutil +# - fftw +# - libgcc-ng +# - libstdcxx-ng +# - openblas +# - armadillo +# - gtest +# - ismrmrd + - libgcc-ng + - libstdcxx-ng + - ismrmrd + - _openmp_mutex # [linux] + - stir + +about: + home: http://www.ccppetmr.ac.uk + license: Apache 2.0 license + summary: 'Synergistic Image Reconstruction Framework' diff --git a/conda/stir/build.sh b/conda/stir/build.sh new file mode 100644 index 00000000..b4fd3438 --- /dev/null +++ b/conda/stir/build.sh @@ -0,0 +1,78 @@ +#!/bin/bash +# +# Script to install/update the CCP-PETMR VM. It could also be used for any other system +# but will currently change your .sirfrc. This is to be avoided later on. +# +# Author: Edoardo Pasca +# Copyright 2016-2018 University College London +# Copyright 2016-2018 Rutherford Appleton Laboratory STFC +# +# This is software developed for the Collaborative Computational +# Project in Positron Emission Tomography and Magnetic Resonance imaging +# (http://www.ccppetmr.ac.uk/). + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0.txt +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +#========================================================================= + +#if [ -z "$SIRF_VERSION" ]; then +# echo "Need to set SIRF_VERSION" +# exit 1 +#fi + +mkdir "$SRC_DIR/build" +mkdir "$SRC_DIR/SIRF-SuperBuild" +#cp -rv "$RECIPE_DIR/../../" "$SRC_DIR/SIRF-SuperBuild" +rsync -rv --exclude=.git "$RECIPE_DIR/../../" "$SRC_DIR/SIRF-SuperBuild" + + +cd $SRC_DIR/build + + +#site-packages ${SP_DIR}/sirf +cmake ../SIRF-SuperBuild \ + -DCMAKE_INSTALL_PREFIX=${PREFIX} \ + -DPYTHON_DEST_DIR=${PREFIX}/python\ + -USIRF_URL \ + -USIRF_TAG \ + -DSIRF_TAG=v2.1.0\ + -USTIR_URL \ + -USTIR_TAG \ + -UGadgetron_URL \ + -UGadgetron_TAG \ + -UISMRMRD_URL \ + -UISMRMRD_TAG \ + -DBUILD_GADGETRON=OFF \ + -DUSE_SYSTEM_SWIG=On \ + -DUSE_SYSTEM_Boost=On \ + -DUSE_SYSTEM_Armadillo=On \ + -DUSE_SYSTEM_ISMRMRD=ON\ + -DUSE_SYSTEM_STIR=Off\ + -DUSE_SYSTEM_FFTW3=On \ + -DUSE_SYSTEM_HDF5=ON \ + -DBUILD_siemens_to_ismrmrd=Off \ + -DUSE_SYSTEM_GTest=On\ + -DUSE_ITK=ON\ + -DUSE_SYSTEM_ITK=OFF\ + -DCONDA_BUILD=On + +make -j2 STIR + +#cp ${PREFIX}/share/gadgetron/config/gadgetron.xml.example ${PREFIX}/share/gadgetron/config/gadgetron.xml + +#cd ${PREFIX}/python +#${PYTHON} setup.py install + +# add to +#echo "${PREFIX}/python" > ${PREFIX} +#${PREFIX}/python diff --git a/conda/stir/meta.yaml b/conda/stir/meta.yaml new file mode 100644 index 00000000..770cfce7 --- /dev/null +++ b/conda/stir/meta.yaml @@ -0,0 +1,76 @@ +package: + name: stir +# version: {{ environ['SIRF_VERSION'] }} + version: 4.0.0_alpha + + +build: + preserve_egg_dir: False +# number: 0 + missing_dso_whitelist: + - $RPATH/libc.so.6 # [linux] + - $RPATH/libm.so.6 # [linux] + - $RPATH/libdl.so.2 # [linux] + - $RPATH/libpthread.so.0 # [linux] + - $RPATH/librt.so.1 # [linux] + - $RPATH/libicuuc.so.60 #[linux] + - $RPATH/libicui18n.so.60 #[linux] + - /lib64/ld-linux-x86-64.so.2 # [linux] + + +requirements: + build: + #- boost ==1.64.0 + #- boost-cpp ==1.64.0 + - boost >=1.63 +# - boost-cpp +# - python 3.6 # [py36] +# - python 2.7 # [py27] + - cmake >=3.1 + - vc 14 # [win and py36] + - vc 9 # [win and py27] +# - numpy +# - scipy +# - matplotlib +# - docopt +# - h5py +# - libxml2 + - psutil + - nose + - coverage + - fftw + - swig >=3 +# - libxslt +#- armadillo + - hdf5 + - gtest + #- ismrmrd + # - itk ==4.13.1 + - ismrmrd + - _openmp_mutex # [linux] + - cudatoolkit=10.1 + + + run: + - vc 14 # [win and py35] + - vc 9 # [win and py27] +# - python 3.6 # [py36] +# - python 2.7 # [py27] +# - numpy +# - scipy +# - matplotlib +# - docopt + - boost >=1.63 + - psutil + - fftw + - libgcc-ng + - libstdcxx-ng + - openblas + - ismrmrd + - _openmp_mutex # [linux] + - cudatoolkit=10.1 + +about: + home: http://www.ccppetmr.ac.uk + license: Apache 2.0 license + summary: 'Synergistic Image Reconstruction Framework'