Commit 485b7756 authored by Philipp Trunschke's avatar Philipp Trunschke

adapt conda recipe to conda-forge guidelines

parent 17a76b6d
Pipeline #2046 passed with stages
in 11 minutes and 48 seconds
#bash bootstrap.sh --with-libraries=system,filesystem,math --prefix=${PREFIX}
#./b2 -q --build-type=minimal --layout=system variant=release debug-symbols=off threading=multi runtime-link=shared link=shared install
......@@ -23,13 +23,13 @@ LAPACK_LIBRARIES = -llapacke -llapack # Standard Lapack + Lapacke libraries
SUITESPARSE = -lcholmod -lspqr
BOOST_LIBS = -lboost_filesystem
OTHER += -I${CONDA_PREFIX}/include -I${CONDA_PREFIX}/lib/python${PY_VER}/site-packages/numpy/core/include/
OTHER += -L${CONDA_PREFIX}/lib
OTHER += -I${PREFIX}/include -I${PREFIX}/lib/python${PY_VER}/site-packages/numpy/core/include/
OTHER += -L${PREFIX}/lib
EOF
ln -s ${CONDA_PREFIX}/include/ ${CONDA_PREFIX}/include/suitesparse
make python3
python3 setup.py install --prefix=${PREFIX}
ln -s ${PREFIX}/include/ ${PREFIX}/include/suitesparse
make python
${PYTHON} -m pip install . --no-deps -vv
# INCLUDE_PATH="${PREFIX}/include"
# mkdir -p ${INCLUDE_PATH}
......
......@@ -9,35 +9,43 @@ package:
source:
- git_url: https://github.com/libxerus/xerus.git
git_tag: {{ branch }}
# git_depth: 1 # perform shallow clone
folder: xerus
build:
skip: true # [py<34 or win]
number: 1
skip: true # [py<34 or win]
requirements:
build:
- {{ compiler('cxx') }}
- make
- openblas
- suitesparse
- lapack
- openmp
- boost >=1.69.0
- pip >=18.1
host:
- python
- numpy {{ numpy }}
#- gdb # bfd
#- backward-cpp # option for better python-like backtraces
run:
- numpy
- openblas
- suitesparse
- lapack
- openmp
- boost >=1.69.0
- python
- numpy {{ numpy }}
- boost-cpp >=1.69.0 # boost-cpp: boost without python
- llvm-openmp # [osx]
- libgomp # [linux]
#- gdb # bfd
#- backward-cpp # option for better python-like backtraces
run:
- {{ pin_compatible('python', max_pin='x.x') }}
- {{ pin_compatible('numpy') }}
- {{ pin_compatible('openblas', max_pin='x.x') }}
- {{ pin_compatible('suitesparse', max_pin='x.x') }}
- {{ pin_compatible('lapack') }}
- {{ pin_compatible('boost-cpp', max_pin='x.x.x') }}
- {{ pin_compatible('llvm-openmp') }} # [osx]
- {{ pin_compatible('libgomp') }} # [linux]
test:
files:
- VERSION
source_files:
- xerus/src/pyTests
about:
home: https://git.hemio.de/xerus/xerus.git
......
#!/bin/bash
set -e
VERSION=$(cat VERSION)
export PYTHONPATH=''
${PYTHON} <<EOF
print("="*80)
print("\trun_test.sh for Xerus ${VERSION}")
print("="*80)
import xerus
assert xerus.__version__ == '${VERSION}', xerus.__version__+" != ${VERSION}"
EOF
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment