• Home
  • History
  • Annotate
  • only in /external/python/futures/
NameDateSize

..10-Aug-20184 KiB

Android.bp10-Aug-2018720

concurrent/10-Aug-20184 KiB

crawl.py10-Aug-20182.4 KiB

docs/10-Aug-20184 KiB

futures.egg-info/10-Aug-20184 KiB

LICENSE10-Aug-20182.3 KiB

MANIFEST.in10-Aug-201886

METADATA10-Aug-2018319

MODULE_LICENSE_APACHE210-Aug-20180

NOTICE10-Aug-20182.3 KiB

PKG-INFO10-Aug-20181.9 KiB

primes.py10-Aug-20181.3 KiB

README.rst10-Aug-20181 KiB

setup.cfg10-Aug-2018143

setup.py10-Aug-20181.4 KiB

test_futures.py10-Aug-201827.1 KiB

tox.ini10-Aug-2018131

README.rst

1.. image:: https://travis-ci.org/agronholm/pythonfutures.svg?branch=master
2  :target: https://travis-ci.org/agronholm/pythonfutures
3  :alt: Build Status
4
5This is a backport of the `concurrent.futures`_ standard library module to Python 2.
6
7It should not be installed on Python 3, although there should be no harm in doing so, as the
8standard library takes precedence over third party libraries.
9
10To conditionally require this library only on Python 2, you can do this in your ``setup.py``:
11
12.. code-block:: python
13
14    setup(
15        ...
16        extras_require={
17            ':python_version == "2.7"': ['futures']
18        }
19    )
20
21Or, using the newer syntax:
22
23.. code-block:: python
24
25    setup(
26        ...
27        install_requires={
28            'futures; python_version == "2.7"'
29        }
30    )
31
32.. warning:: The ``ProcessPoolExecutor`` class has known (unfixable) problems on Python 2 and
33  should not be relied on for mission critical work.
34
35.. _concurrent.futures: https://docs.python.org/library/concurrent.futures.html
36