mitsuba-renderer / nanogui

Minimalistic C++/Python GUI library for OpenGL, GLES2/3, Metal, and WebAssembly/WebGL
Other
1.56k stars 196 forks source link

Build and install wheel locally ? #140

Open stuaxo opened 1 year ago

stuaxo commented 1 year ago

On Ubuntu 22.04, on amd64

Any idea how I can build the python package locally (so I can install it in a virtualenv?).

I can build everything with cmake, though at that point I don't have an installable whl.

If I try python setup.py build or python setup.py install skbuild gets stuck:

ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "/home/stu/.virtualenvs/nanogui/lib/python3.10/site-packages/skbuild/setuptools_wrap.py", line 642, in setup
    cmkr.make(make_args, install_target=cmake_install_target, env=env)
  File "/home/stu/.virtualenvs/nanogui/lib/python3.10/site-packages/skbuild/cmaker.py", line 679, in make
    self.make_impl(clargs=clargs, config=config, source_dir=source_dir, install_target=install_target, env=env)
  File "/home/stu/.virtualenvs/nanogui/lib/python3.10/site-packages/skbuild/cmaker.py", line 710, in make_impl
    raise SKBuildError(

An error occurred while building with CMake.
  Command:
    /usr/bin/cmake --build . --target install --config Release --
  Install target:
    install
  Source directory:
    /home/stu/projects/external/libraries/nanogui
  Working directory:
    /home/stu/projects/external/libraries/nanogui/_skbuild/linux-x86_64-3.10/cmake-build