annotate Demo/embed/README @ 79675:c0a2294de787 2.7

Issue #16199: Backport 2to3 typo fix from 3.2.
author Chris Jerdonek <chris.jerdonek@gmail.com>
date Thu, 11 Oct 2012 16:15:46 -0700
parents edd19217b396
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2601
35233640479b adapted to new naming; clarify comments somewhat
Guido van Rossum <guido@python.org>
parents: 1964
diff changeset
1 This directory show how to embed the Python interpreter in your own
35233640479b adapted to new naming; clarify comments somewhat
Guido van Rossum <guido@python.org>
parents: 1964
diff changeset
2 application. The file demo.c shows you all that is needed in your C
35233640479b adapted to new naming; clarify comments somewhat
Guido van Rossum <guido@python.org>
parents: 1964
diff changeset
3 code.
1964
78bf675df5e5 initial checkin
Guido van Rossum <guido@python.org>
parents:
diff changeset
4
78bf675df5e5 initial checkin
Guido van Rossum <guido@python.org>
parents:
diff changeset
5 To build it, you may have to edit the Makefile:
78bf675df5e5 initial checkin
Guido van Rossum <guido@python.org>
parents:
diff changeset
6
78bf675df5e5 initial checkin
Guido van Rossum <guido@python.org>
parents:
diff changeset
7 1) set blddir to the directory where you built Python, if it isn't in
78bf675df5e5 initial checkin
Guido van Rossum <guido@python.org>
parents:
diff changeset
8 the source directory (../..)
78bf675df5e5 initial checkin
Guido van Rossum <guido@python.org>
parents:
diff changeset
9
78bf675df5e5 initial checkin
Guido van Rossum <guido@python.org>
parents:
diff changeset
10 2) change the variables that together define the list of libraries
78bf675df5e5 initial checkin
Guido van Rossum <guido@python.org>
parents:
diff changeset
11 (MODLIBS, LIBS, SYSLIBS) to link with, to match their definitions in
78bf675df5e5 initial checkin
Guido van Rossum <guido@python.org>
parents:
diff changeset
12 $(blddir)/Modules/Makefile
15797
edd19217b396 Add loop.c -- a test program for repeatedly calling Py_Initialize()
Guido van Rossum <guido@python.org>
parents: 2601
diff changeset
13
edd19217b396 Add loop.c -- a test program for repeatedly calling Py_Initialize()
Guido van Rossum <guido@python.org>
parents: 2601
diff changeset
14 An additional test program, loop.c, is used to experiment with memory
edd19217b396 Add loop.c -- a test program for repeatedly calling Py_Initialize()
Guido van Rossum <guido@python.org>
parents: 2601
diff changeset
15 leakage caused by repeated initialization and finalization of the
edd19217b396 Add loop.c -- a test program for repeatedly calling Py_Initialize()
Guido van Rossum <guido@python.org>
parents: 2601
diff changeset
16 interpreter. It can be build by saying "make loop" and tested with
edd19217b396 Add loop.c -- a test program for repeatedly calling Py_Initialize()
Guido van Rossum <guido@python.org>
parents: 2601
diff changeset
17 "make looptest". Command line usage is "./loop <python-command>",
edd19217b396 Add loop.c -- a test program for repeatedly calling Py_Initialize()
Guido van Rossum <guido@python.org>
parents: 2601
diff changeset
18 e.g. "./loop 'print 2+2'" should spit out an endless number of lines
edd19217b396 Add loop.c -- a test program for repeatedly calling Py_Initialize()
Guido van Rossum <guido@python.org>
parents: 2601
diff changeset
19 containing the number 4.