mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-24 02:27:59 +02:00
Matrix in conda
This commit is contained in:
@ -6,9 +6,8 @@ os: linux
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
matrix:
|
matrix:
|
||||||
- CONDA_PY="3.6"
|
|
||||||
- CONDA_PY="3.7"
|
- CONDA_PY="3.7"
|
||||||
- CONDA_PY="3.8"
|
|
||||||
|
|
||||||
|
|
||||||
dist: trusty
|
dist: trusty
|
||||||
|
@ -13,8 +13,7 @@ cmake .. \
|
|||||||
-DSLS_USE_RECEIVER=ON \
|
-DSLS_USE_RECEIVER=ON \
|
||||||
-DSLS_USE_GUI=ON \
|
-DSLS_USE_GUI=ON \
|
||||||
-DSLS_USE_TESTS=ON \
|
-DSLS_USE_TESTS=ON \
|
||||||
-DPYTHON_EXECUTABLE=$CONDA_PREFIX/bin/python \
|
-DSLS_USE_PYTHON=OFF \
|
||||||
-DSLS_USE_PYTHON=ON \
|
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DSLS_USE_HDF5=OFF\
|
-DSLS_USE_HDF5=OFF\
|
||||||
|
|
||||||
|
4
conda-recepie/conda_build_config.yaml
Normal file
4
conda-recepie/conda_build_config.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
python:
|
||||||
|
- 3.6
|
||||||
|
- 3.7
|
||||||
|
- 3.8
|
@ -15,12 +15,13 @@ requirements:
|
|||||||
build:
|
build:
|
||||||
- {{ compiler('c') }}
|
- {{ compiler('c') }}
|
||||||
- {{compiler('cxx')}}
|
- {{compiler('cxx')}}
|
||||||
- python {{python}}
|
# - python {{python}}
|
||||||
- cmake
|
- cmake
|
||||||
- qwt 6.* #require qt5 investigate before activating gui
|
- qwt 6 #require qt5 investigate before activating gui
|
||||||
- qt=4.8*
|
- qt=4.8
|
||||||
- zeromq=4.2.5=hfc679d8_5
|
# - zeromq=4.2.5=hfc679d8_5
|
||||||
- pyzmq
|
- zeromq
|
||||||
|
# - pyzmq
|
||||||
- xorg-libx11
|
- xorg-libx11
|
||||||
- xorg-libice
|
- xorg-libice
|
||||||
- xorg-libxext
|
- xorg-libxext
|
||||||
@ -59,21 +60,23 @@ outputs:
|
|||||||
run:
|
run:
|
||||||
- libstdcxx-ng
|
- libstdcxx-ng
|
||||||
- libgcc-ng
|
- libgcc-ng
|
||||||
- pyzmq
|
- zeromq
|
||||||
|
|
||||||
- name: slsdet
|
- name: slsdet
|
||||||
|
|
||||||
script: build_pylib.sh
|
script: build_pylib.sh
|
||||||
|
|
||||||
requirements:
|
requirements:
|
||||||
build:
|
build:
|
||||||
- python {{python}}
|
- python
|
||||||
|
- {{ pin_subpackage('slsdetlib', exact=True) }}
|
||||||
- setuptools
|
- setuptools
|
||||||
- wheel
|
- wheel
|
||||||
|
|
||||||
run:
|
run:
|
||||||
- python {{python}}
|
- python
|
||||||
- numpy
|
- numpy
|
||||||
- slsdetlib=udp
|
- {{ pin_subpackage('slsdetlib', exact=True) }}
|
||||||
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
@ -84,6 +87,6 @@ outputs:
|
|||||||
script: copy_gui.sh
|
script: copy_gui.sh
|
||||||
requirements:
|
requirements:
|
||||||
run:
|
run:
|
||||||
- slsdetlib=udp
|
- {{ pin_subpackage('slsdetlib', exact=True) }}
|
||||||
- qwt 6.*
|
- qwt 6
|
||||||
- qt=4.8.*
|
- qt=4.8
|
||||||
|
@ -33,30 +33,30 @@ def get_conda_path():
|
|||||||
# return pybind11.get_include(self.user)
|
# return pybind11.get_include(self.user)
|
||||||
|
|
||||||
|
|
||||||
# ext_modules = [
|
ext_modules = [
|
||||||
# Extension(
|
Extension(
|
||||||
# '_sls_detector',
|
'_sls_detector',
|
||||||
# ['src/main.cpp',
|
['src/main.cpp',
|
||||||
# 'src/enums.cpp',
|
'src/enums.cpp',
|
||||||
# 'src/detector.cpp',
|
'src/detector.cpp',
|
||||||
# 'src/network.cpp'],
|
'src/network.cpp'],
|
||||||
# include_dirs=[
|
include_dirs=[
|
||||||
# # Path to pybind11 headers
|
# Path to pybind11 headers
|
||||||
# # get_pybind_include(),
|
# get_pybind_include(),
|
||||||
# # get_pybind_include(user=True),
|
# get_pybind_include(user=True),
|
||||||
# os.path.join(get_conda_path(), 'include/slsDetectorPackage/libs/pybind11'),
|
os.path.join('../libs/pybind11'),
|
||||||
# os.path.join(get_conda_path(), 'include/slsDetectorPackage'),
|
os.path.join(get_conda_path(), 'include/slsDetectorPackage'),
|
||||||
|
|
||||||
# ],
|
],
|
||||||
# libraries=['SlsDetector', 'SlsReceiver', 'zmq'],
|
libraries=['SlsDetector', 'SlsReceiver', 'zmq'],
|
||||||
# library_dirs=[
|
library_dirs=[
|
||||||
# os.path.join(get_conda_path(), 'lib'),
|
os.path.join(get_conda_path(), 'lib'),
|
||||||
# os.path.join(get_conda_path(), 'bin'),
|
os.path.join(get_conda_path(), 'bin'),
|
||||||
# ],
|
],
|
||||||
|
|
||||||
# language='c++'
|
language='c++'
|
||||||
# ),
|
),
|
||||||
# ]
|
]
|
||||||
|
|
||||||
|
|
||||||
# As of Python 3.6, CCompiler has a `has_flag` method.
|
# As of Python 3.6, CCompiler has a `has_flag` method.
|
||||||
@ -124,7 +124,8 @@ setup(
|
|||||||
url='https://github.com/slsdetectorgroup/sls_detector',
|
url='https://github.com/slsdetectorgroup/sls_detector',
|
||||||
description='Detector API for SLS Detector Group detectors',
|
description='Detector API for SLS Detector Group detectors',
|
||||||
long_description='',
|
long_description='',
|
||||||
|
ext_modules=ext_modules,
|
||||||
packages=['sls_detector'],
|
packages=['sls_detector'],
|
||||||
data_files = [('', get_shared_lib())],
|
# data_files = [('', get_shared_lib())],
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user