Skip to content

Commit 368ff4a

Browse files
Merge pull request #14 from agimus-project/fix/opencv-version-optional-deps
Fix/opencv version optional deps
2 parents 2ec360a + 5dbaa4f commit 368ff4a

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.11)
1+
cmake_minimum_required(VERSION 3.15)
22
project(pym3t LANGUAGES CXX)
33

44
option(USE_AZURE_KINECT "Use Azure Kinect" OFF)

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ cd pym3t
3333
python -m venv .venv
3434
source .venv/bin/activate
3535
pip install .
36+
# or if you want to run examples
37+
pip install .[examples]
3638
```
3739

3840
# Example scripts

environment.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
channels:
22
- conda-forge
33
dependencies:
4-
- python=3.9
4+
- python>=3.8
55
- compilers
66
- cmake
77
- scikit-build
88
- pyyaml
9-
- opencv
9+
- opencv==4.3.0
1010
- mesa-libgl-devel-cos7-x86_64
1111
- mesa-dri-drivers-cos7-x86_64
1212
- libxcb
1313
- glew
1414
- glfw
1515
- librealsense
16-
- quaternion
1716
- eigen
17+
- numpy
18+
- quaternion

pyproject.toml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@ build-backend = "scikit_build_core.build"
77
[project]
88
name = "pym3t"
99
version = "0.0.1"
10-
requires-python = ">=3.7"
10+
requires-python = ">=3.8"
1111
# run time dependencies
12-
dependencies = [
13-
"numpy"
12+
dependencies = []
13+
14+
[project.optional-dependencies]
15+
examples = [
16+
"numpy<2.0.0", # older numpy-quaternion releases are not compatible with numpy 2.0.0
17+
"numpy-quaternion>=2023.0.3",
18+
"opencv-python>=4.11.0.86",
1419
]

0 commit comments

Comments
 (0)