pydata/pydata-sphinx-theme

[packaging] How to build this offline?

オープン

#628 opened on 2022/04/15

 (5 件のコメント) (0 件のリアクション) (0 人の担当者)Python (388 件のフォーク)github user discovery
help wanted

Repository metrics

Stars
 (772 個のスター)
PR merge metrics
 (平均マージ 1d 14h) (30d で 18 merged PRs)

説明

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!

コントリビューターガイド