Python: packaging

Given a structure of a project ..

  gstream/
    bin/
      gstream
    gstreamlib/
      __init__.py
      gui.py
      player.py
      playlist.py

.. you can create a simple setup.py script containing:

#!/usr/bin/env python

from distutils.core import setup

setup(name='gstream',
      version='0.5',
      author='Matteo Landi',
      author_email='landimatte@gmail.com',
      scripts=['bin/gstream'],
      package_dir={'gstreamlib': 'gstreamlib'},
      packages=['gstreamlib'],
     )

Tags: , ,

Leave a Reply