pydata/pydata-sphinx-theme

[packaging] How to build this offline?

开放

#628 创建于 2022年4月15日

 (5 条评论) (0 个反应) (0 位负责人)Python (390 个派生)github user discovery
help wanted

仓库指标

星标
 (776 个星标)
PR 合并指标
 (平均合并 1天 14小时) (30 天内合并 18 个 PR)

描述

Hello,

How would I go about building this package for distribution in a network-less container?

I'm trying to package 0.8.1 and upon invoking: "python" "-m" "build" "--wheel" "--no-isolation" ".", I get:

starting phase `build'
* Getting dependencies for wheel...
* Building wheel...
[stb] # nodeenv does not exist.
[stb] # Generating new nodeenv with NodeJS 16.13.2!
[stb] $ python -m nodeenv --node=16.13.2 --prebuilt --clean-src /tmp/guix-build-
python-pydata-sphinx-theme-0.8.1.drv-0/pydata_sphinx_theme-0.8.1/.nodeenv
Traceback (most recent call last):
  File "<string>", line 7, in <module>
TypeError: install() got an unexpected keyword argument 'suppress'
error: nodeenv-creation-failed

× Failed to create a `nodeenv`
╰─> See above for failure output from the underlying tooling.

hint: A `urllib.error.HTTPError` indicates that the issue is related to the 
      network or the NodeJS servers. It may mean the node version that this tool
      is trying to fetch is no longer available, for example if there is no 
      compatible NodeJS binary for your operating system.

Link: https://sphinx-theme-builder.rtfd.io/errors/#nodeenv-creation-failed

ERROR Backend subproccess exited when trying to invoke build_wheel
error: in phase 'build': uncaught exception:
%exception #<&invoke-error program: "python" arguments: ("-m" "build" "--wheel" "--no-isolation" ".") exit-status: 1 term-signal: #f stop-signal: #f> 
phase `build' failed after 1.0 seconds
command "python" "-m" "build" "--wheel" "--no-isolation" "." failed with status 1

Is it because of missing JS dependencies? Would providing these javascript dependencies avoid the need to connect to the network?

Thank you!

贡献者指南