Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #40851 > unrolled thread
| Started by | gerson.kurz@gmail.com |
|---|---|
| First post | 2013-03-07 23:23 -0800 |
| Last post | 2013-03-08 05:03 -0500 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.python
Linking with static libraries for Python standard components such as OpenSSL gerson.kurz@gmail.com - 2013-03-07 23:23 -0800
Re: Linking with static libraries for Python standard components such as OpenSSL Terry Reedy <tjreedy@udel.edu> - 2013-03-08 05:03 -0500
| From | gerson.kurz@gmail.com |
|---|---|
| Date | 2013-03-07 23:23 -0800 |
| Subject | Linking with static libraries for Python standard components such as OpenSSL |
| Message-ID | <84193dbe-3256-4815-b828-7ce7bd90d388@googlegroups.com> |
I am rebuilding Python 2.7.4 using Visual Studio 2010. As part of that, I wanted to build with a current OpenSSL version (1.0.1e) and an updated SQLite version. What I noted: the projects in the main workspace (at least in PCBuild) directly include the source code of dependent libraries. Can somebody please explain the rationale behind that? Wouldn't it be better to instead link with static libraries of these projects? Exhibit A: _ssl.pyd requires a Perl interpreter to build. (Perl! Anathema!) Instead, _ssl.pyd could very well link with the Win32 binaries for OpenSSL? Exhibit B: _bsddb.pyd includes a ton of files from Berkley DB, with their filenames. Alas, newer versions of Berkley DB have slightly changed filenames, so the project needs to be changed to adjust for a newer version of Berkley DB.
[toc] | [next] | [standalone]
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Date | 2013-03-08 05:03 -0500 |
| Message-ID | <mailman.3075.1362737024.2939.python-list@python.org> |
| In reply to | #40851 |
On 3/8/2013 2:23 AM, gerson.kurz@gmail.com wrote: > I am rebuilding Python 2.7.4 using Visual Studio 2010. As part of > that, I wanted to build with a current OpenSSL version (1.0.1e) and > an updated SQLite version. > > What I noted: the projects in the main workspace (at least in > PCBuild) directly include the source code of dependent libraries. Can > somebody please explain the rationale behind that? > > Wouldn't it be better to instead link with static libraries of these > projects? > > Exhibit A: _ssl.pyd requires a Perl interpreter to build. (Perl! > Anathema!) Instead, _ssl.pyd could very well link with the Win32 > binaries for OpenSSL? If you can make that work, open an issue and submit a patch. I have not gotten perl, so I am not building ssl. > Exhibit B: _bsddb.pyd includes a ton of files from Berkley DB, with > their filenames. Alas, newer versions of Berkley DB have slightly > changed filenames, so the project needs to be changed to adjust for a > newer version of Berkley DB. The it would not work with older versions? This sort of constant hassle is why bsddb is not part of 3.x. -- Terry Jan Reedy
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web