diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2017-11-05 11:08:38 +0100 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2017-11-05 11:08:38 +0100 |
commit | 14da187ad60b46a0e657933fd55d99cbb00e1c5c (patch) | |
tree | 309cecc840cdbfb7f4103cfd012410778dc1543b /maintainers/scripts | |
parent | 6254141c927842bdf95dca39613b9baa21f32f76 (diff) | |
download | nixpkgs-14da187ad60b46a0e657933fd55d99cbb00e1c5c.tar nixpkgs-14da187ad60b46a0e657933fd55d99cbb00e1c5c.tar.gz nixpkgs-14da187ad60b46a0e657933fd55d99cbb00e1c5c.tar.bz2 nixpkgs-14da187ad60b46a0e657933fd55d99cbb00e1c5c.tar.lz nixpkgs-14da187ad60b46a0e657933fd55d99cbb00e1c5c.tar.xz nixpkgs-14da187ad60b46a0e657933fd55d99cbb00e1c5c.tar.zst nixpkgs-14da187ad60b46a0e657933fd55d99cbb00e1c5c.zip |
Python update-python-libraries: fetch and update asynchronously
Diffstat (limited to 'maintainers/scripts')
-rwxr-xr-x | maintainers/scripts/update-python-libraries | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/maintainers/scripts/update-python-libraries b/maintainers/scripts/update-python-libraries index 7c73510c353..3ddc8c23a79 100755 --- a/maintainers/scripts/update-python-libraries +++ b/maintainers/scripts/update-python-libraries @@ -18,6 +18,7 @@ import os import re import requests import toolz +from concurrent.futures import ThreadPoolExecutor as pool INDEX = "https://pypi.io/pypi" """url of PyPI""" @@ -235,7 +236,8 @@ def main(): packages = map(os.path.abspath, args.package) - count = list(map(_update, packages)) + with pool() as p: + count = list(p.map(_update, packages)) logging.info("{} package(s) updated".format(sum(count))) |