loginowskid commited on
Commit
009fecd
·
1 Parent(s): 4c8bc64

Vendor patched simready-foundation-core wheel (LFS)

Browse files

Wheel tracked via Git LFS — Space pre-receive hook rejects >10MB
files in regular git. Adds .gitattributes entry for *.whl in
tools/hf_space/wheels/.

Source: simready-oem-library-pm@b0bae21

.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tools/hf_space/wheels/*.whl filter=lfs diff=lfs merge=lfs -text
Dockerfile CHANGED
@@ -55,16 +55,21 @@ RUN git clone https://github.com/NVIDIA/simready-foundation \
55
  && cd ${SIMREADY_FOUNDATIONS_PATH} \
56
  && git checkout ${SIMREADY_FOUNDATIONS_COMMIT} \
57
  && chown -R ${USER}:${USER} ${SIMREADY_FOUNDATIONS_PATH}
58
- # NOTE: `pip install ${SIMREADY_FOUNDATIONS_PATH}` does NOT work —
59
- # the package source is at nv_core/sr_specs/ and uses hatchling with
60
- # a custom build hook that requires NVIDIA's `repo` tool +
61
- # usd_profiles_codegen plugin to produce the _build/ artifacts the
62
- # wheel depends on. Codegen isn't available in our base image.
63
- # DGXC works because install-simready-sdk.sh handles the codegen
64
- # build there. For now we rely on the registration-failure recovery
65
- # path in runner.py (--use-plugin) which falls back to whatever
66
- # omniverse-usd-profiles brings in. Open follow-up: build the
67
- # foundation wheel offline and pip-install the artifact.
 
 
 
 
 
68
 
69
  # Copy the bundled validator (the same code our DGXC runner uses) and
70
  # the Space's own entry points. Keep the in-repo path so the validator's
 
55
  && cd ${SIMREADY_FOUNDATIONS_PATH} \
56
  && git checkout ${SIMREADY_FOUNDATIONS_COMMIT} \
57
  && chown -R ${USER}:${USER} ${SIMREADY_FOUNDATIONS_PATH}
58
+
59
+ # Vendored simready-foundation-core wheel. Built offline from the
60
+ # foundation repo at commit 805d2c5 using:
61
+ # 1. python -m omni.usd_profiles.codegen --docs-root docs
62
+ # --destination-dir _build/python --namespace omni.capabilities
63
+ # 2. python -m build --wheel nv_core/sr_specs
64
+ # Plus a local patch (docs/__init__.py + pyproject.toml entry-point
65
+ # declaration) so the wheel ships the SimReadyPlugin entry-point that
66
+ # omni.asset_validator's allow-list discovery requires. Without this
67
+ # wheel the validator loads only DefaultPlugin and ends up with
68
+ # profiles=0. The clone above is still needed for spec markdown
69
+ # (SIMREADY_FOUNDATIONS_PATH) — wheel provides the runtime package.
70
+ COPY tools/hf_space/wheels/simready_foundation_core-0.2.0a1-py3-none-any.whl /tmp/
71
+ RUN pip install --no-cache-dir /tmp/simready_foundation_core-0.2.0a1-py3-none-any.whl \
72
+ && rm /tmp/simready_foundation_core-0.2.0a1-py3-none-any.whl
73
 
74
  # Copy the bundled validator (the same code our DGXC runner uses) and
75
  # the Space's own entry points. Keep the in-repo path so the validator's
tools/hf_space/Dockerfile CHANGED
@@ -55,16 +55,21 @@ RUN git clone https://github.com/NVIDIA/simready-foundation \
55
  && cd ${SIMREADY_FOUNDATIONS_PATH} \
56
  && git checkout ${SIMREADY_FOUNDATIONS_COMMIT} \
57
  && chown -R ${USER}:${USER} ${SIMREADY_FOUNDATIONS_PATH}
58
- # NOTE: `pip install ${SIMREADY_FOUNDATIONS_PATH}` does NOT work —
59
- # the package source is at nv_core/sr_specs/ and uses hatchling with
60
- # a custom build hook that requires NVIDIA's `repo` tool +
61
- # usd_profiles_codegen plugin to produce the _build/ artifacts the
62
- # wheel depends on. Codegen isn't available in our base image.
63
- # DGXC works because install-simready-sdk.sh handles the codegen
64
- # build there. For now we rely on the registration-failure recovery
65
- # path in runner.py (--use-plugin) which falls back to whatever
66
- # omniverse-usd-profiles brings in. Open follow-up: build the
67
- # foundation wheel offline and pip-install the artifact.
 
 
 
 
 
68
 
69
  # Copy the bundled validator (the same code our DGXC runner uses) and
70
  # the Space's own entry points. Keep the in-repo path so the validator's
 
55
  && cd ${SIMREADY_FOUNDATIONS_PATH} \
56
  && git checkout ${SIMREADY_FOUNDATIONS_COMMIT} \
57
  && chown -R ${USER}:${USER} ${SIMREADY_FOUNDATIONS_PATH}
58
+
59
+ # Vendored simready-foundation-core wheel. Built offline from the
60
+ # foundation repo at commit 805d2c5 using:
61
+ # 1. python -m omni.usd_profiles.codegen --docs-root docs
62
+ # --destination-dir _build/python --namespace omni.capabilities
63
+ # 2. python -m build --wheel nv_core/sr_specs
64
+ # Plus a local patch (docs/__init__.py + pyproject.toml entry-point
65
+ # declaration) so the wheel ships the SimReadyPlugin entry-point that
66
+ # omni.asset_validator's allow-list discovery requires. Without this
67
+ # wheel the validator loads only DefaultPlugin and ends up with
68
+ # profiles=0. The clone above is still needed for spec markdown
69
+ # (SIMREADY_FOUNDATIONS_PATH) — wheel provides the runtime package.
70
+ COPY tools/hf_space/wheels/simready_foundation_core-0.2.0a1-py3-none-any.whl /tmp/
71
+ RUN pip install --no-cache-dir /tmp/simready_foundation_core-0.2.0a1-py3-none-any.whl \
72
+ && rm /tmp/simready_foundation_core-0.2.0a1-py3-none-any.whl
73
 
74
  # Copy the bundled validator (the same code our DGXC runner uses) and
75
  # the Space's own entry points. Keep the in-repo path so the validator's
tools/hf_space/wheels/simready_foundation_core-0.2.0a1-py3-none-any.whl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d1bce113e5b6c503c1900bbb12f5c1366c0a2f53cc37860b16dc0de7d4c6eab8
3
+ size 22285226