Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    distribute-install_component 0.1

    Download button

    No screenshots available
    Downloads: 88  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Daniel Pope | More programs
    Other/Proprietary Li... / FREE
    May 23rd, 2012, 03:22 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    distribute-install_component description

    Distribute extension to install components listed in extras_require

    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': ["ReportLab>=1.2", "RXP"],
     'reST': ["docutils>=0.3"],
     }
     )


    Then distribute-install_component allows you to write:

     python setup.py install_component PDF reST

    to install the dependencies needed for these features.

    Commandline Arguments

    install_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 package

    To make distribute-install_component available in your package, you can add it to setup_requires in your setup.py:

    setup(
     name='myproject',
     ...
     setup_requires=[
     'distribute-install_component',
     ]
    )


    Tips

    You can use distribute-install_requires to provide development dependencies, such as documentation builders or testing packages:

    setup(
     name='myproject',
     ...
     setup_requires=[
     'distribute-install_component',
     ],
     extras_require={
     'test': ['nose==1.1.2', 'mock==0.8.0'],
     'docs': ['Sphinx>=1.1.3', 'sphinxcontrib-httpdomain==1.1.7'],
     }
    )


    Then normal users can just run

     python setup.py install

    While developers can run

     python setup.py develop install_component test docs


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    install components | Python library | Python | install | components

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM