split example visualizaiton pipeline

This commit is contained in:
ykcheungab
2026-06-18 13:47:16 +08:00
parent fbee1c37ed
commit f19f092b64
42 changed files with 3067 additions and 702 deletions
+10 -29
View File
@@ -1,32 +1,13 @@
from setuptools import setup, find_packages
"""Setuptools entry point; bundle rules are read from pyproject.toml."""
from pathlib import Path
import sys
config_dir = Path("config")
data_files = []
if config_dir.exists():
json_files = [str(p) for p in sorted(config_dir.glob("*.json"))]
if json_files:
data_files.append(("orisys/configs", json_files))
from setuptools import setup
setup(
name="orisys",
version="0.4.0",
description="Orisys - Optical Tactile Sensor SDK",
author="Your Name",
package_dir={"": "src"},
packages=find_packages(where="src"),
include_package_data=True,
data_files=data_files,
install_requires=[
"numpy>=1.24.4",
"opencv-python>=4.10.0.84",
"scipy>=1.10.1",
],
extras_require={
"cuda12": ["cupy-cuda12x>=12.3.0"],
"cuda13": ["cupy-cuda13x>=13.0.0"],
# For backward compatibility, 'cuda' defaults to CUDA 12.x
"cuda": ["cupy-cuda12x>=12.3.0"],
},
python_requires=">=3.8",
)
REPO_ROOT = Path(__file__).resolve().parent
sys.path.insert(0, str(REPO_ROOT / "build"))
from pyproject_utils import bundle_data_files
setup(data_files=bundle_data_files(REPO_ROOT))