1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hmz007 6d24f2138b
Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56)
3 years ago
..
concurrent Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
docs Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
futures.egg-info Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
Android.bp Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
LICENSE Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
MANIFEST.in Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
METADATA Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
MODULE_LICENSE_APACHE2 Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
OWNERS Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
PKG-INFO Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
README.rst Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
crawl.py Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
primes.py Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
setup.cfg Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
setup.py Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
test_futures.py Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
tox.ini Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago

README.rst

.. image:: https://travis-ci.org/agronholm/pythonfutures.svg?branch=master
  :target: https://travis-ci.org/agronholm/pythonfutures
  :alt: Build Status

This is a backport of the `concurrent.futures`_ standard library module to Python 2.

It 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``:

.. code-block:: python

    setup(
        ...
        extras_require={
            ':python_version == "2.7"': ['futures']
        }
    )

Or, using the newer syntax:

.. code-block:: python

    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.

.. _concurrent.futures: https://docs.python.org/library/concurrent.futures.html