# Copyright (c) 2022-2026, The Isaac Lab Project Developers (https://github.com/isaac-sim/IsaacLab/blob/main/CONTRIBUTORS.md). # All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause """Installation script for the 'isaaclab_contrib' python package.""" import os import toml from setuptools import setup # Obtain the extension data from the extension.toml file EXTENSION_PATH = os.path.dirname(os.path.realpath(__file__)) # Read the extension.toml file EXTENSION_TOML_DATA = toml.load(os.path.join(EXTENSION_PATH, "config", "extension.toml")) # Extra dependencies for contributed extensions EXTRAS_REQUIRE = { "rlinf": [ # -- safe to resolve alongside isaaclab core -- "ray[default]>=2.47.0", "av>=12.3.0", # numpydantic pulls pydantic>=2.7; cap for typing_extensions==4.12.2 (see isaaclab). "pydantic>=2.7,<2.12", "numpydantic>=1.7.0", "albumentations>=1.4.18", "decord2", "dm_tree>=0.1.8", "diffusers>=0.35.0", "timm>=1.0.14", "peft>=0.17.0", "pandas", ], } # Installation operation setup( name="isaaclab_contrib", author="Isaac Lab Project Developers", maintainer="Isaac Lab Project Developers", url=EXTENSION_TOML_DATA["package"]["repository"], version=EXTENSION_TOML_DATA["package"]["version"], description=EXTENSION_TOML_DATA["package"]["description"], keywords=EXTENSION_TOML_DATA["package"]["keywords"], include_package_data=True, package_data={"": ["*.pyi"]}, python_requires=">=3.12", extras_require=EXTRAS_REQUIRE, packages=["isaaclab_contrib"], classifiers=[ "Natural Language :: English", "Programming Language :: Python :: 3.12", "Isaac Sim :: 6.0.0", ], zip_safe=False, )