diff options
author | Oleg Pudeyev <oleg@bsdpower.com> | 2016-01-04 06:29:32 -0500 |
---|---|---|
committer | Oleg Pudeyev <oleg@bsdpower.com> | 2016-01-04 06:32:24 -0500 |
commit | 96c429e29e13008ae489a84d55cefffbda40e0b7 (patch) | |
tree | 8ccc4cbe11260643d5f1a2b863aa1b8c5cc564f2 /INSTALL.rst | |
parent | 23233a88c1bd1803c040a729ef34d9e6b64adb42 (diff) | |
download | pycurl-96c429e29e13008ae489a84d55cefffbda40e0b7.tar.gz |
Add --with-openssl and accept it on Windows to compile OpenSSL crypto locks.
* Add --with-openssl as an alias for --with-ssl.
--with-ssl is misleading so let's fix it.
* Accept --with-openssl and --with-ssl on Windows to indicate that
libcurl was built against OpenSSL. --with-gnutls and --with-nss are
not accepted on Windows because I don't need them yet.
* When winbuild.py has use_openssl=True, pass --with-openssl to setup.py
so that OpenSSL crypto locks are used by PycURL. This makes
PycURL importable whereas previously importing it complained
about SSL backend mismatch between compile time and link time.
Diffstat (limited to 'INSTALL.rst')
-rw-r--r-- | INSTALL.rst | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/INSTALL.rst b/INSTALL.rst index da9d878..c05dedf 100644 --- a/INSTALL.rst +++ b/INSTALL.rst @@ -51,7 +51,11 @@ It will then fail at runtime as follows:: To fix this, you need to tell ``setup.py`` what SSL backend is used:: - python setup.py --with-[ssl|gnutls|nss] install + python setup.py --with-[openssl|gnutls|nss] install + +Note: as of PycURL 7.21.5, setup.py accepts ``--with-openssl`` option to +indicate that libcurl is built against OpenSSL. ``--with-ssl`` is an alias +for ``--with-openssl`` and continues to be accepted for backwards compatibility. You can also ask ``setup.py`` to obtain SSL backend information from installed libcurl shared library, as follows: @@ -82,10 +86,6 @@ note above):: export PYCURL_SSL_LIBRARY=[openssl|gnutls|nss] easy_install pycurl -Please note the difference in spelling that concerns OpenSSL: the command-line -argument is --with-ssl, to match libcurl, but the environment variable value is -"openssl". - pip and cached pycurl package ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -178,7 +178,10 @@ Additional Windows setup.py options: import library. The default is ``libcurl.lib`` which is appropriate for static linking and is sometimes the correct choice for dynamic linking as well. The other possibility for dynamic linking is ``libcurl_imp.lib``. -- ``--avoid-stdio``: on windows, a process and each library it is using +- ``--with-openssl``: use OpenSSL crypto locks when libcurl was built against + OpenSSL. +- ``--with-ssl``: legacy alias for ``--with-openssl``. +- ``--avoid-stdio``: on Windows, a process and each library it is using may be linked to its own version of the C runtime (msvcrt). FILE pointers from one C runtime may not be passed to another C runtime. This option prevents direct passing of FILE pointers from Python to libcurl, |