Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lumicks/embedded_python
Conan package which generates a Python distribution for embedding
https://github.com/lumicks/embedded_python
conan
Last synced: about 2 months ago
JSON representation
Conan package which generates a Python distribution for embedding
- Host: GitHub
- URL: https://github.com/lumicks/embedded_python
- Owner: lumicks
- License: apache-2.0
- Created: 2019-06-06T21:46:53.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-06-17T07:17:34.000Z (6 months ago)
- Last Synced: 2024-06-18T08:09:53.212Z (6 months ago)
- Topics: conan
- Language: Python
- Homepage:
- Size: 115 KB
- Stars: 4
- Watchers: 11
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- License: license.md
Awesome Lists containing this project
README
Embedded Python as a Conan package
----------------------------------[![](https://github.com/lumicks/embedded_python/workflows/test_package/badge.svg)](https://github.com/lumicks/embedded_python/actions)
This Conan recipe builds an embedded Python distribution that is intended to be used as part of an application (e.g. placed into the `bin` directory).
The application can then execute Python code internally.## Motivation
Python.org provides an [embeddable package](https://docs.python.org/3/using/windows.html#the-embeddable-package) as a minimal distribution that is intended exactly for this purpose.
The documentation suggests that it is possible to install third-party packages within this distribution and embed everything into an application, but it's quite short on details.
By design, `pip` is not available in the embedded Python in order to ensure that the environment is frozen after deployment.
However, this does make it difficult to get third-party packages into the environment in the first place.The aim of this Conan recipe is to make it easy to build an embedded Python distribution with any third-third party packages available on pypi.org.