pybind / pybind/python_example

[Question] Modifying setup.py with pybind used in a submodule

Open
#83 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

If I have a module built with pybind as sub-module how would my already constructed setup.py incorporate this? For example, my package is structured like this.

\--package_home
         setup.py
         \--base_package
                 __init__.py
                 a1.py
                 a2.py
                 \--sub_package
                          __init__.py
                          [pybind .so module would go here]
                          b1.py
                          

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

Start by reading setup.py and the package layout described in the issue, especially base_package/sub_package and the intended pybind shared-object location. Determine how the existing Python-based build should incorporate that submodule, and document the resulting setup for this structure.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.