File size: 2,241 Bytes
3f4bb1d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# 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_visualizers' python package."""

from setuptools import setup

# Base requirements shared across visualizer backends.
INSTALL_REQUIRES = [
    "isaaclab",
    "numpy",
]

# Every Newton declaration in the repo must use the SAME extra spec (`newton[sim]`).
# Pip resolves a git-URL requirement once per URL: if any package declares bare
# `newton @ git+...` while another declares `newton[sim] @ git+...`, the first
# resolution wins and silently drops the `[sim]` extra. That breaks `isaaclab_newton`
# at import time because `mujoco` / `mujoco-warp` go missing. So even the rerun/viser
# extras — which don't use the MuJoCo solver directly — must pin `newton[sim]` to
# stay consistent with `isaaclab_newton`.
EXTRAS_REQUIRE = {
    "kit": [],
    "newton": [
        "warp-lang",
        "newton[sim]==1.2.1",
        "PyOpenGL-accelerate",
        "pyglet>=2.1.6,<3",
        "imgui-bundle>=1.92.601",
        "typing-extensions==4.12.2",
        "pydantic>=2.7,<2.12",
    ],
    "rerun": [
        "newton[sim]==1.2.1",
        "rerun-sdk>=0.29.0",
        "pyarrow==23.0.1",
    ],
    "viser": [
        "newton[sim]==1.2.1",
        "viser>=1.0.16",
    ],
}

EXTRAS_REQUIRE["all"] = sorted({dep for group in EXTRAS_REQUIRE.values() for dep in group})

setup(
    name="isaaclab_visualizers",
    author="Isaac Lab Project Developers",
    maintainer="Isaac Lab Project Developers",
    url="https://github.com/isaac-sim/IsaacLab",
    version="0.1.0",
    description="Visualizer backends for Isaac Lab (Kit, Newton, Rerun, Viser).",
    keywords=["robotics", "simulation", "visualization"],
    license="BSD-3-Clause",
    include_package_data=True,
    package_data={"": ["*.pyi"]},
    python_requires=">=3.12",
    install_requires=INSTALL_REQUIRES,
    extras_require=EXTRAS_REQUIRE,
    packages=["isaaclab_visualizers"],
    classifiers=[
        "Natural Language :: English",
        "Programming Language :: Python :: 3.12",
        "Isaac Sim :: 6.0.0",
    ],
    zip_safe=False,
)