Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #19430
| References | <CA+mfgz1PMHc=REJxCcXVxSNxCJxVLAPiAJO5CN-LiycFSvdsNQ@mail.gmail.com> <CA+mfgz0JRxjgWQg7SAw80+gKyOFdU+sYo0w2NnCs84-4TD7-mw@mail.gmail.com> <jfpn8h$ihh$1@dough.gmane.org> |
|---|---|
| From | Adam Mercer <ramercer@gmail.com> |
| Date | 2012-01-25 14:41 -0600 |
| Subject | Re: Determining version of OpenSSL linked against python? |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.5092.1327524153.27778.python-list@python.org> (permalink) |
On Wed, Jan 25, 2012 at 14:04, Terry Reedy <tjreedy@udel.edu> wrote: > If you are not willing to tell Debian Squeeze users to install 2.7, or that > they cannot run your program, ask the bug reporter to tell you what version > of OpenSSL the system comes with and code it into your program. I would like to only support python-2.7 as that would make a few other things easier but the powers that be think otherwise, I unfortunately need to target python-2.6. > Or possibly, depending on what you do with the version info and what the > differences are between versions, replace 'if version ...' constructs with > 'try ... except...' constructs. My code already has a try... except block that tries the ssl.OPENSSL_VERSION approach first but I wanted to have a fallback method that works with python-2.6. Looks like I may need to hardcode certain things. Cheers Adam
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Determining version of OpenSSL linked against python? Adam Mercer <ramercer@gmail.com> - 2012-01-25 14:41 -0600
csiph-web