Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
python setup.py develop

Adjusting setup.py

The setup.py file is used for meta information of the package and for the requirements. The initial setup.py file, as created by scaffold, looks like this:

Code Block
languagepy
try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

config = {
    'description': 'My Project',
    'author': 'My Name',
    'url': 'URL to get it at.',
    'download_url': 'Where to download it.',
    'author_email': 'My email.',
    'version': '0.1',
    'install_requires': ['nose'],
    'packages': ['projectname'],
    'scripts': [],
    'name': 'projectname'
}

setup(**config)

The config dictionary has to be adjusted in order to describe the actual information on the package and the author(s). The field install_requires should include a list with the requirements of the package. All packages listed in there will be installed when installing your package with:

Code Block
languagebash
python setup.py develop