33 lines
911 B
Python
33 lines
911 B
Python
from setuptools import setup, find_packages
|
|
from pathlib import Path
|
|
|
|
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))
|
|
|
|
setup(
|
|
name="orisys",
|
|
version="0.3.1",
|
|
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",
|
|
)
|