GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Shrink WinPhyton installation? Extract site-packages from .zip only on demand? · Issue #1425 · winpython/winpython

Shrink WinPhyton installation? Extract site-packages from .zip only on demand? #1425

New issue
Copy link
New issue
Copy link
Open
Open
Shrink WinPhyton installation? Extract site-packages from .zip only on demand?#1425
Copy link

Description

@pstein
pstein
opened on Oct 23, 2024
Issue body actions

I installed recently to full WInPython v3.12.4 on my Windows 10 system.

As I noticed this installation requires huge 4,85 GB (!) disk space.
Ok, I still have 90 GB free on my 1 TB SSD. But I would feel better if it would be smaller.
Python is by far my biggest space consuming software on my disk/SSD.
I am thinking about how users can reduce disk space for WinPython.

Since I am not a heavy Python user but uses it only occasionally and only some packages I can think of the following mechanism:

All "site-packages" remain zipped until there are really imported in a Python script.
Only if a Python script runs which executes an import this (and only this !) package is extracted from *.zip archive.

Is this somehow possible?

Activity

  1. stonebig commented on Oct 24, 2024

    @stonebig
    stonebig
    on Oct 24, 2024
    Contributor
    More actions

    Question has been raised on Pip per another person, in may 2023: pypa/pip#12022

  2. stonebig commented on Oct 24, 2024

    @stonebig
    stonebig
    on Oct 24, 2024
    Contributor
    More actions

    You can uninstall packages, and compat a "reduce version" of WinPython.
    Intermediate size of Winpython have never been so popular.

    The trend of ever-bigger distro comes from:

    • more package with nice functionalities
    • each pack gets bigger over time
    • Cpython-3.12 in particular didn't care about the size of their generated package
    • difficulty to abandon heavy packages: Qt5, Torch

    Your other alternative is to :

    • rely on a small WinPythonDot (that would still grow a bit when "JIT" will be included) + trusted package source (to come)
    • count on cpython taking the size matter challenge, but it's not in their paid priorities yet
  3. pstein commented on Oct 26, 2024

    @pstein
    pstein
    on Oct 26, 2024
    Author
    More actions

    As far as I understand the *.pyc files resp. pycache folder contains pre-compiled *.py lib files.
    What happens if I deleted them all?
    Are they - only if they are accessed by *.py scripts - automatically re-compiled and real-time created again?

    And what about the other invers side:
    Are the *.py source files in "Lib" folder only for compilation?
    So if all *.pyc files remain I could delete all the *.py stuff in "Lib" (sub)folders..
    Does that harm the running of my user *.py scripts?

  4. stonebig commented on May 9, 2025

    @stonebig
    stonebig
    on May 9, 2025
    Contributor
    More actions

    for now, you have the solution to get a small winpython "dot", and get whatever you want in the requirements with hash after

    see https://github.com/winpython/winpython/releases/tag/15.3.20250425final

    you will just miss pandoc.exe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.