forked from M-Labs/artiq
1
0
Fork 0

flake/sphinx: fix errors in manual nix build

This commit is contained in:
architeuthidae 2024-07-31 18:05:44 +08:00 committed by Sébastien Bourdeauducq
parent 4e800af410
commit 42b48598e5
2 changed files with 5 additions and 13 deletions

View File

@ -29,21 +29,13 @@ builtins.__in_sphinx__ = True
# we cannot use autodoc_mock_imports (does not help with argparse)
mock_modules = ["artiq.gui.waitingspinnerwidget",
"artiq.gui.flowlayout",
"artiq.gui.state",
"artiq.gui.log",
"artiq.gui.models",
"artiq.compiler.module",
"artiq.compiler.embedding",
"artiq.dashboard.waveform",
"artiq.dashboard.interactive_args",
"qasync", "pyqtgraph", "matplotlib", "lmdb",
"numpy", "dateutil", "dateutil.parser", "prettytable", "PyQt5",
"h5py", "serial", "scipy", "scipy.interpolate",
"llvmlite", "Levenshtein", "pythonparser",
"sipyco", "sipyco.pc_rpc", "sipyco.sync_struct",
"sipyco.asyncio_tools", "sipyco.logging_tools",
"sipyco.broadcast", "sipyco.packed_exceptions",
"sipyco.keepalive", "sipyco.pipe_ipc"]
"artiq.coredevice.jsondesc",
"qasync", "lmdb", "dateutil.parser", "prettytable", "PyQt5",
"h5py", "llvmlite", "pythonparser", "tqdm", "jsonschema"]
for module in mock_modules:
sys.modules[module] = Mock()

View File

@ -353,7 +353,7 @@
buildInputs = with pkgs.python3Packages; [
sphinx sphinx_rtd_theme
sphinx-argparse sphinxcontrib-wavedrom
];
] ++ [ artiq-comtools.packages.x86_64-linux.artiq-comtools ];
buildPhase = ''
export VERSIONEER_OVERRIDE=${artiqVersion}
export SOURCE_DATE_EPOCH=${builtins.toString self.sourceInfo.lastModified}
@ -373,7 +373,7 @@
buildInputs = with pkgs.python3Packages; [
sphinx sphinx_rtd_theme
sphinx-argparse sphinxcontrib-wavedrom
] ++ [ latex-artiq-manual ];
] ++ [ latex-artiq-manual artiq-comtools.packages.x86_64-linux.artiq-comtools ];
buildPhase = ''
export VERSIONEER_OVERRIDE=${artiq.version}
export SOURCE_DATE_EPOCH=${builtins.toString self.sourceInfo.lastModified}