This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: No documentation of static/dynamic python modules.
Type: Stage:
Components: Documentation Versions: Python 2.2
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: Nosy List: jschonek2, loewis
Priority: normal Keywords:

Created on 2003-03-12 12:23 by jschonek2, last changed 2022-04-10 16:07 by admin. This issue is now closed.

Messages (6)
msg15099 - (view) Author: J.A. Schonekerl (jschonek2) Date: 2003-03-12 12:23
Hi,

This problem cost me very much time to solve:

After I build Python, all dynamic libraries got dynamically
linked into the Python interpreter (libraries like
zlib and tcl/tk stuff).

I coudn't find out why this is, I only want to load zlib.so
when I do a "import zlib" and not when I start Python.

And this is (I think) the difference between statically and
dynamically build Python libraries, but this isn't explaind
in a clear way.

You can configure the dynamic/static module beheviour in
the Modules/Setup file (afher you did a configure) with
the *shared* flag. 

The dinamic/static module behaviour should at least very
clear described in that file, this is not the case at
this moment.

Best regards,

Jan





msg15100 - (view) Author: J.A. Schonekerl (jschonek2) Date: 2003-03-13 13:05
Logged In: YES 
user_id=732192

Uuuh when I say "python library" I mean a "python module"
msg15101 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-03-15 13:29
Logged In: YES 
user_id=21627

What do you mean when you say "all dynamic libraries got
dynamically linked into the Python interpreter"? If it means
what I understand it means (i.e. all libraries are passed to
the ld command creating the python binary), then this is not
supposed to happen.

Can you provide a make log to demonstrate this more clearly?
msg15102 - (view) Author: J.A. Schonekerl (jschonek2) Date: 2003-03-17 12:02
Logged In: YES 
user_id=732192

Hi,

When I build python with zlib and the commented shared flag
"#*shared*". then zlib.so is included in ./python (checked
with ldd ./python).

When I build python with zlib and the  *shared* flag commented
out then is zlib.so not part of the ./python program.

The question is now: is this the difference between shared and
static modules?

or

do I have so weird problem?
msg15103 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-03-17 18:51
Logged In: YES 
user_id=21627

I cannot reproduce this. If I leave # *shared*, but enable
zlib in Modules/Setup, I get no file Modules/zlib.so, only
Modules/zlib.o. This is incorporated into python.

If I also leave zlib commented in Modules/Setup, zlib.so is
build through setup.py in build/lib-somewhere, *after*
python was linked.

Can you provide a complete build log?
msg15104 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-05-11 20:42
Logged In: YES 
user_id=21627

Closing this because of lack of feedback.
History
Date User Action Args
2022-04-10 16:07:37adminsetgithub: 38152
2003-03-12 12:23:58jschonek2create