twisted.python.dist module documentationtwisted.python
View Source
Distutils convenience functionality.
Don't use this outside of Twisted.
Maintainer: Christopher Armstrong
| Class | ConditionalExtension | An extension module that will only be compiled if certain conditions are met. |
| Function | setup | An alternative to distutils' setup() which is specially designed for Twisted subprojects. |
| Function | get_setup_args | Undocumented |
| Function | getVersion | Extract the version number. |
| Function | getExtensions | Get the C extensions used for Twisted. |
| Function | getScripts | Returns a list of scripts for Twisted. |
| Class | build_scripts_twisted | Renames scripts so they end with '.py' on Windows. |
| Class | build_ext_twisted | Allow subclasses to easily detect and customize Extensions to build at install-time. |
| Variable | _EXTRA_OPTIONS | These are the actual package names and versions that will be used by
extras_require. This is not passed to setup directly so that
combinations of the packages can be created without the need to copy
package names multiple times. |
| Variable | _EXTRAS_REQUIRE | extras_require is a dictionary of items that can be passed to
setup.py to install optional dependencies. For example, to install the
optional dev dependencies one would type:
pip install -e ".[dev]" This has been supported by setuptools since 0.5a4. |
| Variable | _PLATFORM_INDEPENDENT | A list of all optional cross-platform dependencies, as setuptools version
specifiers, used to populate _EXTRAS_REQUIRE. |
| Function | _checkCPython | Checks if this implementation is CPython. |
extras_require. This is not passed to setup directly so that
combinations of the packages can be created without the need to copy
package names multiple times.
extras_require is a dictionary of items that can be passed to
setup.py to install optional dependencies. For example, to install the
optional dev dependencies one would type:
pip install -e ".[dev]"
This has been supported by setuptools since 0.5a4.
_EXTRAS_REQUIRE.
An alternative to distutils' setup() which is specially designed for Twisted subprojects.
| Parameters | conditionalExtensions | Extensions to optionally build. (type: list of ConditionalExtension) |
Extract the version number.
| Returns | The version number of the project, as a string like "2.0.0". (type: str) | |
Checks if this implementation is CPython.
This uses platform.python_implementation.
This takes sys and platform kwargs that by
default use the real modules. You shouldn't care about these -- they are
for testing purposes only.
| Returns | False if the implementation is definitely not CPython,
True otherwise. | |