pybind / pybind/pybind11

[QUESTION] Python Folder Dependencies to make it work without python installed

Open
#2,858 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
18k
Forks
2.3k
Avg merge
5d 17h
Merged PRs (30d)
10

Description

I'm making a game engine in C++ where the user can write python code inside it. I'm using pybind11 and Python 3 for that.

Problem is that I don't want to require the user to have python installed on his machine in order to run the software and the solution that I found is to copy the entire encodings and Lib folder from my python installation to the engine directory and ship it with those folders. That way I can run it in another machine without python installed (tested).

But those folders are extremely huge in terms of file count and I'm not finding any documentation about the minimal dependencies necessary to make it run.

So how can I get the minimal folders to make it work without python installed?

Contributor guide

Open the contributing guide

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

No source files or tests are named. Start with pybind11's Python 3 embedding documentation and the runtime-dependency setup described in the issue; determine which files are required for a standalone deployment and document the minimal folder set, including how to verify it on a machine without Python installed.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
backend
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.