Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 2.51 KB

README.md

File metadata and controls

58 lines (39 loc) · 2.51 KB

Embed my Python

Simplify the process of setting up a Python environment with specific versions and dependencies across various operating systems.

Table of Contents

Features

  • Automated Setup: Effortlessly set up an embedded Python environment including all your requirements in one step
  • Customizable Python Version: Choose the Python version that best fits your project's needs.
  • Dependency Management: Easily manage and install dependencies with a requirements file.
  • Cross-Platform Compatibility: Support for Windows (done), macOS (planned), and Linux (planned).

Setup

  1. Clone or download the repository

Usage

Windows

  1. Open PowerShell.

  2. Navigate to the embed-my-python folder.

  3. Execute the script using optional CLI parameters:

    .\embed-my-python-win.ps1 -v 3.10.9 -r D:\dev\myproject\requirements.txt -d D:\dev\myproject\python-embedded

CLI Parameters

Option Description Default Value
-v Specify the Python version to use for the embedded environment. 3.10.9
-r Path to the requirements.txt file with the necessary Python packages. .\requirements.txt
-d Destination directory where the embedded Python environment will be set up. .\python-embedded
-a Additional path to be added to the Python environment's .pth file. This can be useful for including extra directories in the PYTHONPATH. None

Feedback

Your feedback is invaluable to us! If you have any suggestions, issues, or ideas for improvements, please feel free to open an issue or submit a pull request. We're committed to making EmbedMyPython better with your help!