• Join/Login
  • Business Software
  • Open Source Software
  • For Vendors
  • Blog
  • About
  • More
    • Articles
    • Create
    • SourceForge Podcast
    • Site Documentation
    • Subscribe to our Newsletter
    • Support Request
SourceForge logo
For Vendors Help Create Join Login
SourceForge logo
SourceForge logo
Business Software
Open Source Software
SourceForge Podcast
Resources
  • Articles
  • Case Studies
  • Blog
Menu
  • Help
  • Create
  • Join
  • Login
  • Home
  • Browse
  • py2exe
  • Patches
py2exe

Support for 'lite' mode for resulting executables

Brought to you by: jretz, mhammond, theller
  • Summary
  • Files
  • Reviews
  • Support
  • Mailing Lists
  • Tickets ▾
    • Feature Requests
    • Patches
    • Bugs
  • News
  • SVN
  • CVS
Menu ▾ ▴
  • Create Ticket
  • View Stats

Group

Searches

  • Changes
  • Closed Tickets
  • Open Tickets

Help

  • Formatting Help

#20 Support for 'lite' mode for resulting executables

open
nobody
None
5
2008-09-04
2008-09-04
Alexey Borzenkov
No

This patch adds support for what I call a 'lite' mode, when the resulting executable starts to depend on default python installation, which saves up to several megabytes of the resulting executable size.

Primary reason for this is that I write lots and lots of small tools that I sometimes need to give to co-workers. Usually I use bundle_files=1 mode and everything is well except for size, it's 2-3 megabytes more than I would like it to be.

It's easy to ask co-workers to grab an installer at www.python.org and install it, but it's not easy to ask them to install all those extensions that I use, most of which I build myself, so I still need py2exe to package all third party extensions into the executable. But packaging python over and over again is a waste of space and bandwidth, in my opinion.

The attached patch adds this support, as well as fixing some quirks regarding current sys.path handling.

Feel free to comment if there's anything wrong with my implementation, though I have already tested it on my co-workers and it appears to work fine.

Discussion

  • Alexey Borzenkov

    Alexey Borzenkov - 2008-09-04
     
    py2exe-lite-mode.patch
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:

Log in to post a comment.

SourceForge
  • Create a Project
  • Open Source Software
  • Business Software
  • Top Downloaded Projects
Company
  • About
  • Team
  • SourceForge Headquarters
    225 Broadway Suite 1600
    San Diego, CA 92101
    +1 (858) 422-6466
Resources
  • Support
  • Site Documentation
  • Site Status
  • SourceForge Reviews
SourceForge logo
© 2025 Slashdot Media. All Rights Reserved.
Terms Privacy Opt Out Advertise
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.