distribute-install_component

Distribute extension to install components listed in extras_require
Download

distribute-install_component Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Other/Proprietary Li...
  • Price:
  • FREE
  • Publisher Name:
  • Daniel Pope
  • Publisher web site:
  • https://bitbucket.org/lordmauve/

distribute-install_component Tags


distribute-install_component Description

distribute-install_component adds a command to distribute to interact with the extra components listed in extras_require.For example, you could write a setup.py containing:setup( name="Project-A", ... extras_require={ 'PDF': , 'reST': , } )Then distribute-install_component allows you to write: python setup.py install_component PDF reSTto install the dependencies needed for these features.Commandline Argumentsinstall_component takes a list of components to install dependencies for. These must be listed in the extras_require section of the package.The -l option can be used to list the components available.Configuring a packageTo make distribute-install_component available in your package, you can add it to setup_requires in your setup.py:setup( name='myproject', ... setup_requires=)TipsYou can use distribute-install_requires to provide development dependencies, such as documentation builders or testing packages:setup( name='myproject', ... setup_requires=, extras_require={ 'test': , 'docs': , })Then normal users can just run python setup.py installWhile developers can run python setup.py develop install_component test docsProduct's homepage


distribute-install_component Related Software