O'Reilly logo

Python 2.6 Text Processing Beginner's Guide by Jeff McNeil

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - creating an egg-based package

We're going to create a Python egg-based package. From here, we'll do all of our development work. We detailed the installation of SetupTools and Python Eggs in the first chapter. Here, we'll learn how to roll our own packages.

  1. First, create a new directory and name it text_beginner, and step into it.
  2. Now, we're going to create a setup.py file, which will be used to package our source bundle and handle dependencies. Create a setup.py file with the following contents:
     from setuptools import setup, find_packages setup( name='text_beginner', version='0.1', description='Text Beginner Package', author='Your Name', author_email='Your Email', install_requires=[], packages=find_packages(), include_package_data=True, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required