On Wed, 10 May 2017 at 16:36 David Douard <david.dou...@logilab.fr> wrote:
> the loading of the cryptography.hazmat.backends module is very slow on > my stretch machine: > This is ultimately caused by pkg_resources doing slow things at import time: https://github.com/pypa/setuptools/issues/510 Cryptography 1.8.1 includes a workaround deferring the import of pkg_resources to when default_backend is called: https://github.com/pyca/cryptography/commit/aa396c0805aced49d5502fafa20f304a23e369a7 Which probably explains your virtualenv results. However, given that stretch is frozen now, I'm not sure there is anything to be done about it at this stage.