This package 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
Metadata
Release files for distribute-install_component 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| distribute-install_component-0.1.tar.gz | 2.2 kB | Without provenance | Details |
Release files / distribute-install_component-0.1.tar.gz
| Download URL | distribute-install_component-0.1.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
01572fc015f0fcc2320efdf75b6f8cb59ff48f882c9cf59867979897923a6a48
|
|
BLAKE2b-256 checksum How to use checksums |
6b5d0324cffda8dcf596a0fdff42e03ff9e3777e4de761b13ddfec80ca4dbb29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for distribute-install_component 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.