mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 21:07:13 +02:00
separated the recipes
This commit is contained in:
@ -1,11 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-3.0-or-other
|
|
||||||
# Copyright (C) 2021 Contributors to the SLS Detector Package
|
|
||||||
|
|
||||||
echo "|<-------- starting python build"
|
|
||||||
|
|
||||||
cd python
|
|
||||||
|
|
||||||
# copy VERSION into slsdet for installation
|
|
||||||
cp ../VERSION slsdet/VERSION
|
|
||||||
|
|
||||||
${PYTHON} setup.py install
|
|
@ -1,16 +0,0 @@
|
|||||||
python:
|
|
||||||
# - 3.8
|
|
||||||
# - 3.9
|
|
||||||
# - 3.10
|
|
||||||
# - 3.11
|
|
||||||
# - 3.12
|
|
||||||
- 3.13
|
|
||||||
|
|
||||||
c_compiler_version: # [unix]
|
|
||||||
- 11 # [linux]
|
|
||||||
|
|
||||||
cxx_compiler_version:
|
|
||||||
- 11 # [linux]
|
|
||||||
|
|
||||||
c_stdlib_version: # [linux]
|
|
||||||
- 2.17 # [linux]
|
|
@ -1,11 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-3.0-or-other
|
|
||||||
# Copyright (C) 2021 Contributors to the SLS Detector Package
|
|
||||||
mkdir $PREFIX/lib
|
|
||||||
mkdir $PREFIX/bin
|
|
||||||
mkdir $PREFIX/include
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
cp build/bin/ctbGui $PREFIX/bin/.
|
|
||||||
cp build/bin/libctbRootLib.so $PREFIX/lib/.
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-3.0-or-other
|
|
||||||
# Copyright (C) 2021 Contributors to the SLS Detector Package
|
|
||||||
|
|
||||||
mkdir -p $PREFIX/lib
|
|
||||||
mkdir -p $PREFIX/bin
|
|
||||||
mkdir -p $PREFIX/include/sls
|
|
||||||
# mkdir $PREFIX/include/slsDetectorPackage
|
|
||||||
|
|
||||||
#Shared and static libraries
|
|
||||||
cp build/install/lib/* $PREFIX/lib/
|
|
||||||
|
|
||||||
#Binaries
|
|
||||||
cp build/install/bin/sls_detector_acquire $PREFIX/bin/.
|
|
||||||
cp build/install/bin/sls_detector_acquire_zmq $PREFIX/bin/.
|
|
||||||
cp build/install/bin/sls_detector_get $PREFIX/bin/.
|
|
||||||
cp build/install/bin/sls_detector_put $PREFIX/bin/.
|
|
||||||
cp build/install/bin/sls_detector_help $PREFIX/bin/.
|
|
||||||
cp build/install/bin/slsReceiver $PREFIX/bin/.
|
|
||||||
cp build/install/bin/slsMultiReceiver $PREFIX/bin/.
|
|
||||||
|
|
||||||
|
|
||||||
cp build/install/include/sls/* $PREFIX/include/sls
|
|
||||||
cp -rv build/install/share $PREFIX
|
|
@ -1,114 +0,0 @@
|
|||||||
package:
|
|
||||||
name: sls_detector_software
|
|
||||||
version: {{ environ.get('GIT_DESCRIBE_TAG', '') }}
|
|
||||||
|
|
||||||
|
|
||||||
source:
|
|
||||||
path: ..
|
|
||||||
|
|
||||||
build:
|
|
||||||
number: 0
|
|
||||||
binary_relocation: True
|
|
||||||
rpaths:
|
|
||||||
- lib/
|
|
||||||
|
|
||||||
requirements:
|
|
||||||
build:
|
|
||||||
- {{ compiler('c') }}
|
|
||||||
- {{ compiler('cxx') }}
|
|
||||||
- cmake<=3.28
|
|
||||||
- ninja
|
|
||||||
- qt 5.*
|
|
||||||
|
|
||||||
host:
|
|
||||||
# - libstdcxx-ng
|
|
||||||
# - libgcc-ng
|
|
||||||
- xorg-libx11
|
|
||||||
- xorg-libice
|
|
||||||
- xorg-libxext
|
|
||||||
- xorg-libsm
|
|
||||||
- xorg-libxau
|
|
||||||
- xorg-libxrender
|
|
||||||
- xorg-libxfixes
|
|
||||||
- expat
|
|
||||||
- libtiff
|
|
||||||
- libpng
|
|
||||||
|
|
||||||
run:
|
|
||||||
# - libstdcxx-ng
|
|
||||||
# - libgcc-ng
|
|
||||||
|
|
||||||
|
|
||||||
outputs:
|
|
||||||
- name: slsdetlib
|
|
||||||
script: copy_lib.sh
|
|
||||||
|
|
||||||
requirements:
|
|
||||||
build:
|
|
||||||
- {{ compiler('c') }}
|
|
||||||
- {{compiler('cxx')}}
|
|
||||||
# - libstdcxx-ng
|
|
||||||
# - libgcc-ng
|
|
||||||
|
|
||||||
run:
|
|
||||||
# - libstdcxx-ng
|
|
||||||
# - libgcc-ng
|
|
||||||
|
|
||||||
# - name: slsdet
|
|
||||||
# script: build_pylib.sh
|
|
||||||
|
|
||||||
# requirements:
|
|
||||||
# build:
|
|
||||||
# - python
|
|
||||||
# - {{ compiler('c') }}
|
|
||||||
# - {{compiler('cxx')}}
|
|
||||||
# - {{ pin_subpackage('slsdetlib', exact=True) }}
|
|
||||||
# - setuptools
|
|
||||||
# - pybind11=2.13
|
|
||||||
|
|
||||||
# host:
|
|
||||||
# - python
|
|
||||||
# - {{ pin_subpackage('slsdetlib', exact=True) }}
|
|
||||||
# - setuptools
|
|
||||||
# - pybind11=2.13
|
|
||||||
|
|
||||||
|
|
||||||
# run:
|
|
||||||
# - libstdcxx-ng
|
|
||||||
# - libgcc-ng
|
|
||||||
# - python
|
|
||||||
# - numpy
|
|
||||||
# - {{ pin_subpackage('slsdetlib', exact=True) }}
|
|
||||||
|
|
||||||
# test:
|
|
||||||
# imports:
|
|
||||||
# - slsdet
|
|
||||||
|
|
||||||
|
|
||||||
# - name: slsdetgui
|
|
||||||
# script: copy_gui.sh
|
|
||||||
# requirements:
|
|
||||||
|
|
||||||
# build:
|
|
||||||
# - {{ compiler('c') }}
|
|
||||||
# - {{compiler('cxx')}}
|
|
||||||
# - {{ pin_subpackage('slsdetlib', exact=True) }}
|
|
||||||
|
|
||||||
# run:
|
|
||||||
# - {{ pin_subpackage('slsdetlib', exact=True) }}
|
|
||||||
# - qt 5.*
|
|
||||||
# - expat
|
|
||||||
|
|
||||||
# - name: moenchzmq
|
|
||||||
# script: copy_moench.sh
|
|
||||||
# requirements:
|
|
||||||
|
|
||||||
# build:
|
|
||||||
# - {{ compiler('c') }}
|
|
||||||
# - {{compiler('cxx')}}
|
|
||||||
# - {{ pin_subpackage('slsdetlib', exact=True) }}
|
|
||||||
|
|
||||||
|
|
||||||
# run:
|
|
||||||
# - {{ pin_subpackage('slsdetlib', exact=True) }}
|
|
||||||
# - expat
|
|
@ -1,3 +0,0 @@
|
|||||||
# SPDX-License-Identifier: LGPL-3.0-or-other
|
|
||||||
# Copyright (C) 2021 Contributors to the SLS Detector Package
|
|
||||||
ctest -j2
|
|
@ -13,7 +13,7 @@ cmake .. -G Ninja \
|
|||||||
-DCMAKE_INSTALL_PREFIX=install \
|
-DCMAKE_INSTALL_PREFIX=install \
|
||||||
-DSLS_USE_TEXTCLIENT=ON \
|
-DSLS_USE_TEXTCLIENT=ON \
|
||||||
-DSLS_USE_RECEIVER=ON \
|
-DSLS_USE_RECEIVER=ON \
|
||||||
-DSLS_USE_GUI=OFF \
|
-DSLS_USE_GUI=ON \
|
||||||
-DSLS_USE_MOENCH=ON\
|
-DSLS_USE_MOENCH=ON\
|
||||||
-DSLS_USE_TESTS=ON \
|
-DSLS_USE_TESTS=ON \
|
||||||
-DSLS_USE_PYTHON=OFF \
|
-DSLS_USE_PYTHON=OFF \
|
26
conda-recipes/main-library/conda_build_config.yaml
Normal file
26
conda-recipes/main-library/conda_build_config.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
python:
|
||||||
|
# - 3.8
|
||||||
|
# - 3.9
|
||||||
|
# - 3.10
|
||||||
|
# - 3.11
|
||||||
|
# - 3.12
|
||||||
|
- 3.13
|
||||||
|
|
||||||
|
c_compiler:
|
||||||
|
- gcc # [linux]
|
||||||
|
|
||||||
|
c_compiler_version:
|
||||||
|
- 13 # [linux]
|
||||||
|
|
||||||
|
c_stdlib:
|
||||||
|
- sysroot # [linux]
|
||||||
|
|
||||||
|
cxx_compiler:
|
||||||
|
- gxx # [linux]
|
||||||
|
|
||||||
|
|
||||||
|
cxx_compiler_version:
|
||||||
|
- 13 # [linux]
|
||||||
|
|
||||||
|
c_stdlib_version: # [linux]
|
||||||
|
- 2.17 # [linux]
|
23
conda-recipes/main-library/copy_lib.sh
Executable file
23
conda-recipes/main-library/copy_lib.sh
Executable file
@ -0,0 +1,23 @@
|
|||||||
|
# # SPDX-License-Identifier: LGPL-3.0-or-other
|
||||||
|
# # Copyright (C) 2021 Contributors to the SLS Detector Package
|
||||||
|
|
||||||
|
# mkdir -p $PREFIX/lib
|
||||||
|
# mkdir -p $PREFIX/bin
|
||||||
|
# mkdir -p $PREFIX/include/sls
|
||||||
|
# # mkdir $PREFIX/include/slsDetectorPackage
|
||||||
|
|
||||||
|
# #Shared and static libraries
|
||||||
|
# cp build/install/lib/* $PREFIX/lib/
|
||||||
|
|
||||||
|
# #Binaries
|
||||||
|
# cp build/install/bin/sls_detector_acquire $PREFIX/bin/.
|
||||||
|
# cp build/install/bin/sls_detector_acquire_zmq $PREFIX/bin/.
|
||||||
|
# cp build/install/bin/sls_detector_get $PREFIX/bin/.
|
||||||
|
# cp build/install/bin/sls_detector_put $PREFIX/bin/.
|
||||||
|
# cp build/install/bin/sls_detector_help $PREFIX/bin/.
|
||||||
|
# cp build/install/bin/slsReceiver $PREFIX/bin/.
|
||||||
|
# cp build/install/bin/slsMultiReceiver $PREFIX/bin/.
|
||||||
|
|
||||||
|
|
||||||
|
# cp build/install/include/sls/* $PREFIX/include/sls
|
||||||
|
# cp -rv build/install/share $PREFIX
|
104
conda-recipes/main-library/meta.yaml
Executable file
104
conda-recipes/main-library/meta.yaml
Executable file
@ -0,0 +1,104 @@
|
|||||||
|
package:
|
||||||
|
name: sls_detector_software
|
||||||
|
version: 2025.3.19
|
||||||
|
|
||||||
|
|
||||||
|
source:
|
||||||
|
path: ../..
|
||||||
|
|
||||||
|
build:
|
||||||
|
number: 0
|
||||||
|
binary_relocation: True
|
||||||
|
rpaths:
|
||||||
|
- lib/
|
||||||
|
|
||||||
|
requirements:
|
||||||
|
build:
|
||||||
|
- {{ compiler('c') }}
|
||||||
|
- {{ stdlib("c") }}
|
||||||
|
- {{ compiler('cxx') }}
|
||||||
|
|
||||||
|
- cmake
|
||||||
|
- ninja
|
||||||
|
- qt 5.*
|
||||||
|
# - xorg-libx11
|
||||||
|
# - xorg-libice
|
||||||
|
# - xorg-libxext
|
||||||
|
# - xorg-libsm
|
||||||
|
# - xorg-libxau
|
||||||
|
# - xorg-libxrender
|
||||||
|
# - xorg-libxfixes
|
||||||
|
# - {{ cdt('mesa-libgl-devel') }} # [linux]
|
||||||
|
# - {{ cdt('mesa-libegl-devel') }} # [linux]
|
||||||
|
# - {{ cdt('mesa-dri-drivers') }} # [linux]
|
||||||
|
# - {{ cdt('libselinux') }} # [linux]
|
||||||
|
# - {{ cdt('libxdamage') }} # [linux]
|
||||||
|
# - {{ cdt('libxxf86vm') }} # [linux]
|
||||||
|
# - expat
|
||||||
|
|
||||||
|
host:
|
||||||
|
- libstdcxx-ng
|
||||||
|
- libgcc-ng
|
||||||
|
- libgl-devel # [linux]
|
||||||
|
# - xorg-libx11
|
||||||
|
# - xorg-libice
|
||||||
|
# - xorg-libxext
|
||||||
|
# - xorg-libsm
|
||||||
|
# - xorg-libxau
|
||||||
|
# - xorg-libxrender
|
||||||
|
# - xorg-libxfixes
|
||||||
|
# - expat
|
||||||
|
- libtiff
|
||||||
|
# - libpng
|
||||||
|
|
||||||
|
run:
|
||||||
|
# - libstdcxx-ng
|
||||||
|
# - libgcc-ng
|
||||||
|
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
- name: slsdetlib
|
||||||
|
script: copy_lib.sh
|
||||||
|
|
||||||
|
requirements:
|
||||||
|
build:
|
||||||
|
- {{ compiler('c') }}
|
||||||
|
- {{ stdlib("c") }}
|
||||||
|
- {{ compiler('cxx') }}
|
||||||
|
# - libstdcxx-ng
|
||||||
|
# - libgcc-ng
|
||||||
|
|
||||||
|
run:
|
||||||
|
# - libstdcxx-ng
|
||||||
|
# - libgcc-ng
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
- name: slsdetgui
|
||||||
|
script: copy_gui.sh
|
||||||
|
requirements:
|
||||||
|
|
||||||
|
build:
|
||||||
|
- {{ compiler('c') }}
|
||||||
|
- {{compiler('cxx')}}
|
||||||
|
- {{ pin_subpackage('slsdetlib', exact=True) }}
|
||||||
|
|
||||||
|
run:
|
||||||
|
- {{ pin_subpackage('slsdetlib', exact=True) }}
|
||||||
|
- qt 5.*
|
||||||
|
- expat
|
||||||
|
|
||||||
|
- name: moenchzmq
|
||||||
|
script: copy_moench.sh
|
||||||
|
requirements:
|
||||||
|
|
||||||
|
build:
|
||||||
|
- {{ compiler('c') }}
|
||||||
|
- {{compiler('cxx')}}
|
||||||
|
- {{ pin_subpackage('slsdetlib', exact=True) }}
|
||||||
|
|
||||||
|
|
||||||
|
run:
|
||||||
|
- {{ pin_subpackage('slsdetlib', exact=True) }}
|
||||||
|
- expat
|
26
conda-recipes/python-client/conda_build_config.yaml
Normal file
26
conda-recipes/python-client/conda_build_config.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
python:
|
||||||
|
# - 3.8
|
||||||
|
# - 3.9
|
||||||
|
# - 3.10
|
||||||
|
# - 3.11
|
||||||
|
# - 3.12
|
||||||
|
- 3.13
|
||||||
|
|
||||||
|
c_compiler:
|
||||||
|
- gcc # [linux]
|
||||||
|
|
||||||
|
c_compiler_version:
|
||||||
|
- 13 # [linux]
|
||||||
|
|
||||||
|
c_stdlib:
|
||||||
|
- sysroot # [linux]
|
||||||
|
|
||||||
|
cxx_compiler:
|
||||||
|
- gxx # [linux]
|
||||||
|
|
||||||
|
|
||||||
|
cxx_compiler_version:
|
||||||
|
- 13 # [linux]
|
||||||
|
|
||||||
|
c_stdlib_version: # [linux]
|
||||||
|
- 2.17 # [linux]
|
46
conda-recipes/python-client/meta.yaml
Normal file
46
conda-recipes/python-client/meta.yaml
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
package:
|
||||||
|
name: slsdet
|
||||||
|
version: 2025.2.18 #TODO! how to not duplicate this?
|
||||||
|
|
||||||
|
source:
|
||||||
|
path: ../..
|
||||||
|
|
||||||
|
build:
|
||||||
|
number: 0
|
||||||
|
script:
|
||||||
|
- unset CMAKE_GENERATOR && {{ PYTHON }} -m pip install . -vv # [not win]
|
||||||
|
- {{ PYTHON }} -m pip install . -vv # [win]
|
||||||
|
|
||||||
|
requirements:
|
||||||
|
build:
|
||||||
|
- python {{python}}
|
||||||
|
- {{ compiler('c') }}
|
||||||
|
- {{ stdlib("c") }}
|
||||||
|
- {{ compiler('cxx') }}
|
||||||
|
|
||||||
|
|
||||||
|
host:
|
||||||
|
- cmake
|
||||||
|
- ninja
|
||||||
|
- python {{python}}
|
||||||
|
- pip
|
||||||
|
- scikit-build-core
|
||||||
|
- pybind11 >=2.13.0
|
||||||
|
- fmt
|
||||||
|
- zeromq
|
||||||
|
- nlohmann_json
|
||||||
|
- catch2
|
||||||
|
|
||||||
|
run:
|
||||||
|
- python {{python}}
|
||||||
|
- numpy
|
||||||
|
|
||||||
|
|
||||||
|
test:
|
||||||
|
imports:
|
||||||
|
- slsdet
|
||||||
|
|
||||||
|
|
||||||
|
about:
|
||||||
|
summary: An example project built with pybind11 and scikit-build.
|
||||||
|
# license_file: LICENSE
|
@ -4,7 +4,7 @@ build-backend = "scikit_build_core.build"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "slsdet"
|
name = "slsdet"
|
||||||
version = "2025.2.18"
|
version = "2025.3.19"
|
||||||
|
|
||||||
|
|
||||||
[tool.scikit-build]
|
[tool.scikit-build]
|
||||||
|
Reference in New Issue
Block a user