Note: We ( I? ) could get a mercurial repo going for this in order to make 
it easier to maintain. Now it is a scattered collection of files. In the 
mean time here is a rough how to for anyone that needs it...

Creating your own pip installable pypi dstribution of Web2py

If you have the latest version of Web2py it is easy to create your own 
custom pip installable Web2py package.

Option 1

For testing you can create the pypi package (pypi refers to them as 
distributions) by running the following command in the targeted version of 
Web2py::

    cd web2py
    rm ./dist/web2py-1.98.2.tar.gz
    python setup.py sdist

Running the command in web2py directory of Web2py version 1.98.2 will result 
in the creation of a new pip installable distribution in ./web2py/dist::

    ./web2py/dist/web2py-1.98.2.tar.gz

Installing via pip

You can then install the new package via pip by running something like the 
following::

    pip install ./dist/web2py-1.98.2.tar.gz

and you will

Option 2 -  Automation

You can create the pypi package from any up to date installation of web2py 
manually doing something like this::

    cd web2py
    make pip

If run from Web2py version 1.98.2 will result in::

    ./web2py/dist/web2py-1.98.2.tar.gz


BUG as of 2011-08-28

env.tar

env.tar is suppose to be automatically created and copied to the resulting 
tar.gz's gluon directory. This is not working at the moment so you will need 
to do this manually.


Reply via email to