This is a backport of the concurrent.futures standard library module to Python 2.
As of version 3.2.0, this package can no longer be installed on Python 3. Prior versions should not be installed on Python 3, although there should be no harm in doing so, as the standard library takes precedence over third party libraries.
To conditionally require this library only on Python 2, you can do this in your setup.py
:
setup(
...
extras_require={
':python_version == "2.7"': ['futures']
}
)
Or, using the newer syntax:
setup(
...
install_requires={
'futures; python_version == "2.7"'
}
)
Warning
The ProcessPoolExecutor
class has known (unfixable) problems on Python 2 and
should not be relied on for mission critical work.