see whatever…

jump to menu

June 16, 2008

build a web.py egg (0.23)

Filed under: Python,Web — see @ 8:49 pm

To “get an egg” from web.py just download and untar the archive from the website and edit setup.py:

#from distutils.core import setup

try:
from setuptools import setup, find_packages
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages

You obviously need setuptools installed or at least ez_setup (if you don’t know that you won’t need an egg either ;) )

Then just do:

>setup.py bdist_egg

and the egg will be found in folder dist…

Wonder why they only use distutils which cannot build eggs by itself. Anyway it is simple.

I just needed the egg as I try to minimize the need of installed libs and just pack it with an web.py application.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress