Commit 42522dc1 authored by Philipp  Trunschke's avatar Philipp Trunschke
Browse files

test new conda build

parent 82dbb250
Pipeline #2155 failed with stages
in 4 minutes and 13 seconds
......@@ -228,14 +228,15 @@ build/libxerus.so: $(MINIMAL_DEPS) $(XERUS_SOURCES) $(XERUS_INCLUDES) build/libx
$(CXX) -shared -fPIC -Wl,-soname,libxerus.so $(FLAGS) -I include $(XERUS_SOURCES) -L ./build/ -Wl,--as-needed -lxerus_misc $(SUITESPARSE) $(LAPACK_LIBRARIES) $(ARPACK_LIBRARIES) $(BLAS_LIBRARIES) -o build/libxerus.so
python: xerus/xerus.so xerus/libxerus.so xerus/libxerus_misc.so
# python: xerus/xerus.so xerus/libxerus.so xerus/libxerus_misc.so
python: xerus/xerus.so
xerus/xerus.so: build/python3/xerus.so
cp $< $@
xerus/libxerus.so: build/libxerus.so
cp $< $@
xerus/libxerus_misc.so: build/libxerus_misc.so
cp $< $@
# xerus/libxerus.so: build/libxerus.so
# cp $< $@
# xerus/libxerus_misc.so: build/libxerus_misc.so
# cp $< $@
build/python3/xerus.so: $(MINIMAL_DEPS) $(PYTHON_SOURCES) src/xerus/python/misc.h build/libxerus.so
@:$(call check_defined, PYTHON3_CONFIG, include and link paths)
......
......@@ -27,11 +27,12 @@ OTHER += -I${PREFIX}/include -I${PREFIX}/lib/python${PY_VER}/site-packages/numpy
OTHER += -L${PREFIX}/lib
EOF
cp include/xerus.h ${PREFIX}/include/
cp -r include/xerus ${PREFIX}/include/
cp build/libxerus.so ${PREFIX}/lib/
cp build/libxerus_misc.so ${PREFIX}/lib/
ln -s ${PREFIX}/include/ ${PREFIX}/include/suitesparse
make python
${PYTHON} -m pip install . --no-deps -vv
# cp include/xerus.h ${PREFIX}/include/
# cp -r include/xerus ${PREFIX}/include/
# cp build/libxerus.so ${PREFIX}/lib/
# cp build/libxerus_misc.so ${PREFIX}/lib/
{% set name = "Xerus" %}
{% set version = "4.0.1" %}
{% set branch = "SALSA" %}
{% set branch = "conda" %}
package:
name: {{ name|lower + '_' + branch|lower }}
......@@ -14,23 +14,32 @@ source:
build:
number: 1
skip: true # [py<34 or win]
run_exports:
strong:
- python
- numpy
- openblas
- suitesparse
- lapack
- liblapacke
- boost-cpp
- libgomp
requirements:
build:
- {{ compiler('cxx') }}
- make
- {{ pin_compatible('python', max_pin='x.x') }}
- python {{ python }}
- pip >=18.1
host:
- python
- {{ pin_compatible('numpy') }}
- {{ pin_compatible('openblas', max_pin='x.x') }}
- {{ pin_compatible('suitesparse', max_pin='x.x') }}
- {{ pin_compatible('lapack') }}
- {{ pin_compatible('liblapacke') }}
- {{ pin_compatible('boost-cpp', max_pin='x.x.x') }}
- {{ pin_compatible('llvm-openmp') }} # [osx]
- {{ pin_compatible('libgomp') }} # [linux]
- numpy
- openblas
- suitesparse
- lapack
- liblapacke
- boost-cpp
- libgomp
run:
- python
- numpy
......@@ -38,13 +47,8 @@ requirements:
- suitesparse
- lapack
- liblapacke
# - boost-cpp >=1.69.0 # boost-cpp: boost without python
- boost-cpp # boost-cpp: boost without python
- llvm-openmp # [osx]
- libgomp # [linux]
# #- gdb # bfd
# #- backward-cpp # option for better python-like backtraces
# run:
- boost-cpp
- libgomp
test:
# requires:
......
......@@ -12,7 +12,8 @@ setuptools.setup(
long_description_content_type="text/markdown",
url="https://libxerus.org",
packages=['xerus'],
package_data={'xerus': ['*.so']},
# package_data={'xerus': ['*.so']},
package_data={'xerus': ['xerus.so']},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
......
import os
DIR = os.path.dirname(os.path.realpath(__file__))
import ctypes; ctypes.cdll.LoadLibrary(os.path.join(DIR, "libxerus_misc.so"))
import ctypes; ctypes.cdll.LoadLibrary(os.path.join(DIR, "libxerus.so"))
del os, DIR, ctypes
# import os
# DIR = os.path.dirname(os.path.realpath(__file__))
# import ctypes; ctypes.cdll.LoadLibrary(os.path.join(DIR, "libxerus_misc.so"))
# import ctypes; ctypes.cdll.LoadLibrary(os.path.join(DIR, "libxerus.so"))
# del os, DIR, ctypes
from xerus.xerus import *
__version__ = xerus.__version__
__doc__ = xerus.__doc__
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