pydata/pydata-sphinx-theme

[packaging] How to build this offline?

Aperta

#628 aperta il 15 apr 2022

 (5 commenti) (0 reazioni) (0 assegnatari)Python (388 fork)github user discovery
help wanted

Metriche repository

Star
 (776 stelle)
Metriche merge PR
 (Merge medio 1g 14h) (18 PR mergiate in 30 g)

Descrizione

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!

Guida contributor