pybind / pybind/scikit_build_example

Following readme results in errors

Open
#181 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
148
Forks
39
Avg merge
8d 2h
Merged PRs (30d)
1

Description

`programs/github/scikit_build_example$ pip install -e .
Obtaining file:///home/kovalp/programs/github/scikit_build_example
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build editable ... done
Preparing editable metadata (pyproject.toml) ... done
Building wheels for collected packages: scikit_build_example
Building editable for scikit_build_example (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building editable for scikit_build_example (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [22 lines of output]
*** scikit-build-core 0.11.6 using CMake 3.22.1 (editable)
*** Configuring CMake...
loading initial cache file build/CMakeInit.txt
-- The CXX compiler identification is GNU 11.4.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: /home/kovalp/.pyenv/versions/3.13.7/bin/python3.13 (found suitable version "3.13.7", minimum required is "3.8")
-- Found PythonLibs: /home/kovalp/.pyenv/versions/3.13.7/lib/libpython3.13.so
-- Performing Test HAS_FLTO_AUTO
-- Performing Test HAS_FLTO_AUTO - Success
-- Found pybind11: /home/kovalp/.pyenv/versions/3.13.7/lib/python3.13/site-packages/pybind11/include (found version "3.0.1")
CMake Error at CMakeLists.txt:17 (python_add_library):
Unknown CMake command "python_add_library".

  -- Configuring incomplete, errors occurred!
  See also "/home/kovalp/programs/github/scikit_build_example/build/CMakeFiles/CMakeOutput.log".
  
  *** CMake configuration failed
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building editable for scikit_build_example
Failed to build scikit_build_example
error: failed-wheel-build-for-install

× Failed to build installable wheels for some pyproject.toml based projects
╰─> scikit_build_example`

Could you make it more explicit? Maybe adding requirements on OS, way of getting a Python environment, needed compiler would help.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read the README and inspect CMakeLists.txt around line 17, then reproduce the documented pip install -e . command. Document the supported OS, Python environment, compiler, and required build dependencies so the example can be installed successfully by following the README.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, python
Domain
build-system, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.