File tree Expand file tree Collapse file tree 3 files changed +17
-5
lines changed
Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ jobs:
169169 pip install -v --no-build-isolation '.[dev]'
170170 pip install -v --no-build-isolation extensions/${{ matrix.extension }}
171171 - name : Check that stub files are up-to-date
172- run : xvfb-run make -C extensions/${{ matrix.extension }} stubgen && git diff --exit-code
172+ run : make -C extensions/${{ matrix.extension }} stubgen && git diff --exit-code
173173 - name : Clang build
174174 run : make -C extensions/${{ matrix.extension }} clangcompile PYTHON_EXECUTABLE=${{ steps.setup-python.outputs.python-path }}
175175 - name : Check clang format
Original file line number Diff line number Diff line change 1- from rcs_fr3 import desk , envs
1+ import sys
2+
3+ from rcs_fr3 import desk
24from rcs_fr3 ._core import hw
35
46__all__ = [
57 "desk" ,
6- "envs" ,
78 "hw" ,
89]
10+
11+ if "pybind11_stubgen" not in sys .modules :
12+ from rcs_panda import envs # noqa: F401
13+
14+ __all__ .append ("envs" )
Original file line number Diff line number Diff line change 1- from rcs_panda import envs
1+ import sys
2+
23from rcs_panda ._core import hw
34
45__all__ = [
5- "envs" ,
66 "hw" ,
77]
8+
9+ # prevent gymnasium import during stubgen, which can cause a segfault
10+ if "pybind11_stubgen" not in sys .modules :
11+ from rcs_panda import envs # noqa: F401
12+
13+ __all__ .append ("envs" )
You can’t perform that action at this time.
0 commit comments