setuptools - python: simple example for a python egg with a one-file source file? -


I'm not sure how to create really simple one-file source modules. Is there a sample module, where the web can be made in the form of a dragon. Egg?

It looks very easy, you just have your own setup.py file and then at least one other .p file somewhere else, and I create an .egg file I can fix it, and even install it using the easy_install , but I think the file from inside import python (note : Using 2.6.4)


Here's my sample diary:

  sconsconfig setup.py sconsconfig.py  
< P Setuptools setup setup, find_packages setup (name = 'Sconsconfig', version = '0.1', package.py:

P>
  def blarg (x): return x + 1  

if i setup.py bdist_egg it then creates an egg file, but If I look at it, then there is no .py source file ....


Comments