-
Install VS Build Tools using PortableBuildTools
https://github.com/Data-Oriented-House/PortableBuildTools -
for version 14.44.17.14 it creates
devcmd.batin thevs_BuildToolsfolder- copy this
devcmd.battoVC\vcvarsall.bat - in
vcvarsall.batcreate an environment variableLIBPATHand set it to the same value asLIB
(query_vcvarsallin distuils msvc9compiler needsLIBPATHin addition toLIB)
- copy this
-
set
VS140COMNTOOLSto thevs_BuildTools\VC\Toolsfolder
(this makes surevcvarsall.batis being found by distutils)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import ssl | |
| import requests | |
| from requests.adapters import HTTPAdapter | |
| class SSLContextAdapter(HTTPAdapter): | |
| def __init__(self, ssl_context=None, **kwargs): | |
| self.ssl_context = ssl_context | |
| super().__init__(**kwargs) | |
| def init_poolmanager(self, *args, **kwargs): |
OlderNewer