In trunk, I added

   scripts/make_min_web2py.py

run it with

cd web2py
python scripts/make_min_web2py.py ../minweb2py
cd ..
tar cvf minweb2py.tar minweb2py
ls -l minweb2py.tar

It builds a minimal web2py in 1.6MB total uncompressed (446KB
compressed). (tar BEFORE you run it to measure size)

It does NOT removes everything (for example does not delete the
memcache APIs, auth_methods, the pymysql driver) but does remove all
the apps, except for a minimalist welcome, rare handlers (like
modpythonhandler), and some contrib modules that either take no space
(populate, feedparser) or are rarely used (markdown but not markmin,
pyrtf, pyfpdf).

Less than this would make no sense in my view.

This fits in a 3 1/2 floppy disk (~1987) and leave you more than space
for your apps.

Massimo

P.S. Always run with -N for no cron and small memory footprint!



On Aug 1, 5:28 pm, Anthony <[email protected]> wrote:
> On Monday, August 1, 2011 6:06:11 PM UTC-4, Phyo Arkar wrote:
>
> > As web2py grow bigger and bigger :
>
> > - There are many many features which are not used, just sits around.
> > - If we dont want , have to remove them by hand from web2py
> > - If we just want to release a standalone application, web2py is already
> > too big
> > - if i want to strip down features i have to look into web2py code ,
> > modifying , removing stuff , that will break things and every web2py update
> > i have to redo that work.
>
> > May be in Future , in backward-incompatible version of web2py(may be also
> > possible in this version) , shouldn't we separate web2py into separate
> > components
> > eg:
>
> > Web2py-Core (Main web2py Rocket, MVC,Routing)
> > Web2py-DAL (DAL SPecific,auth,curd)
> > Web2py-Extras (Extra web2py Examples,scaffolding)
> > Web2py-Admin (Admin interface)
>
> All of these things are already "modular" in the sense that you can get rid
> of any of them by simply deleting specific files or folders (i.e., you don't
> have to edit any code). Are you saying you just want an easier way to
> download/install exactly what you need without having to bother with any
> deleting?
>
> Anthony

Reply via email to