pydata/pydata-sphinx-theme

[packaging] How to build this offline?

Offen

#628 geöffnet am 15.04.2022

 (5 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (390 Forks)github user discovery
help wanted

Repository-Metriken

Stars
 (776 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 1T 14h) (18 gemergte PRs in 30 T)

Beschreibung

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!

Contributor Guide