Giter VIP home page Giter VIP logo

idf-python's Introduction

Windows Embeddable Python with virtualenv support

The repository contains code to repackage Windows Embeddable version of Python with virtualenv.

What is Windows Embeddable Python?

Windows Embeddable Python is a minimalistic Python distribution suitable for bundling Python inside applications for Windows.

The package is stored in downloads: https://www.python.org/downloads

The name of the package is: Windows x86-64 embeddable zip file

Why is it necessary to repackage ZIP with Embeddable Python?

The official version has the following limitations:

How it works

  • download and unpack Windows Embeddable Python
  • extract content of pythonYY.zip to Lib, remove pythonYY.zip
  • remove pythonYY._pth file
    • this file controls behavior of imports when starting Python
  • download get-pip.py and install pip
  • pip install virtualenv
  • download or use full version of python and copy Lib\venv\scripts\nt\*.exe to python bundle
    • during the creation of virtualenv these python.exe and pythonw.exe files are being copied to virtual environment location
    • these two files are different from python.exe and pythonw.exe in the top Python directory

How to build

PowerShell:

.\Bundle-Python.ps1 -PythonVersion 3.8.6

Result Python distribution will be available in python directory.

How to build with GitHub Actions

Check the version of Python in .github/workflow/bundle-python.yaml. Commit the change and check Actions at GitHub.com. Zip file with the result will be available as artifact in build details.

idf-python's People

Contributors

georgik avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.