see whatever…

jump to menu

June 16, 2008

build a egg (0.23)

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

To “get an egg” from just download and untar the archive from the website and edit

#from distutils.core import setup

from setuptools import setup, find_packages
except ImportError:
from ez_setup import 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:

> 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 application.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress