mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-05 17:40:40 +02:00
fixed conda builds
This commit is contained in:
parent
e865d8febf
commit
018660f392
@ -21,4 +21,4 @@ echo "Building using: ${NCORES} cores"
|
|||||||
cmake --build . -- -j${NCORES}
|
cmake --build . -- -j${NCORES}
|
||||||
cmake --build . --target install
|
cmake --build . --target install
|
||||||
|
|
||||||
CTEST_OUTPUT_ON_FAILURE=1 ctest -j 2
|
CTEST_OUTPUT_ON_FAILURE=1 ctest -j 1
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
python:
|
python:
|
||||||
- 3.6
|
# - 3.8
|
||||||
- 3.7
|
# - 3.9
|
||||||
- 3.8
|
# - 3.10
|
||||||
- 3.9
|
- 3.11
|
||||||
- 3.10
|
|
||||||
|
|
||||||
numpy:
|
numpy:
|
||||||
- 1.17
|
- 1.17
|
||||||
|
@ -17,8 +17,7 @@ requirements:
|
|||||||
- {{ compiler('c') }}
|
- {{ compiler('c') }}
|
||||||
- {{compiler('cxx')}}
|
- {{compiler('cxx')}}
|
||||||
- cmake
|
- cmake
|
||||||
- qwt 6.*
|
- qt 5.*
|
||||||
- qt 4.8.*
|
|
||||||
- zeromq
|
- zeromq
|
||||||
- xorg-libx11
|
- xorg-libx11
|
||||||
- xorg-libice
|
- xorg-libice
|
||||||
@ -111,12 +110,10 @@ outputs:
|
|||||||
- {{ compiler('c') }}
|
- {{ compiler('c') }}
|
||||||
- {{compiler('cxx')}}
|
- {{compiler('cxx')}}
|
||||||
- {{ pin_subpackage('slsdetlib', exact=True) }}
|
- {{ pin_subpackage('slsdetlib', exact=True) }}
|
||||||
- qwt 6.*
|
|
||||||
|
|
||||||
run:
|
run:
|
||||||
- {{ pin_subpackage('slsdetlib', exact=True) }}
|
- {{ pin_subpackage('slsdetlib', exact=True) }}
|
||||||
- qwt 6.*
|
- qt 5.*
|
||||||
- qt 4.8.*
|
|
||||||
- expat
|
- expat
|
||||||
|
|
||||||
- name: moenchzmq
|
- name: moenchzmq
|
||||||
|
@ -7,7 +7,7 @@ Build upon the pybind11 example found here: https://github.com/pybind/python_exa
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
sys.path.append('../libs/pybind11')
|
sys.path.append('../libs/pybind')
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
from pybind11.setup_helpers import Pybind11Extension, build_ext
|
from pybind11.setup_helpers import Pybind11Extension, build_ext
|
||||||
|
|
||||||
@ -22,19 +22,25 @@ def get_conda_path():
|
|||||||
return os.environ['CONDA_PREFIX']
|
return os.environ['CONDA_PREFIX']
|
||||||
|
|
||||||
|
|
||||||
#TODO migrate to CMake build?
|
#TODO migrate to CMake build or fetch files from cmake?
|
||||||
ext_modules = [
|
ext_modules = [
|
||||||
Pybind11Extension(
|
Pybind11Extension(
|
||||||
'_slsdet',
|
'_slsdet',
|
||||||
['src/main.cpp',
|
['src/main.cpp',
|
||||||
'src/current.cpp',
|
|
||||||
'src/enums.cpp',
|
'src/enums.cpp',
|
||||||
|
'src/current.cpp',
|
||||||
'src/detector.cpp',
|
'src/detector.cpp',
|
||||||
'src/network.cpp',
|
'src/network.cpp',
|
||||||
'src/pattern.cpp',
|
'src/pattern.cpp',
|
||||||
'src/scan.cpp',],
|
'src/scan.cpp',
|
||||||
|
'src/duration.cpp',
|
||||||
|
'src/DurationWrapper.cpp',
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
,
|
||||||
include_dirs=[
|
include_dirs=[
|
||||||
os.path.join('../libs/pybind11/include'),
|
os.path.join('../libs/pybind/include'),
|
||||||
os.path.join(get_conda_path(), 'include'),
|
os.path.join(get_conda_path(), 'include'),
|
||||||
|
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user