mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Clarify that the Modules/ directory is in an unpacked source
distribution; this is not clear for Windows users.
This commit is contained in:
parent
c0fcbc1ac6
commit
a4a90ddeac
1 changed files with 3 additions and 3 deletions
|
@ -420,15 +420,15 @@ If you can't use dynamic loading, or if you want to make your module a
|
||||||
permanent part of the Python interpreter, you will have to change the
|
permanent part of the Python interpreter, you will have to change the
|
||||||
configuration setup and rebuild the interpreter. Luckily, this is
|
configuration setup and rebuild the interpreter. Luckily, this is
|
||||||
very simple: just place your file (\file{spammodule.c} for example) in
|
very simple: just place your file (\file{spammodule.c} for example) in
|
||||||
the \file{Modules} directory, add a line to the file
|
the \file{Modules/} directory of an unpacked source distribution, add
|
||||||
\file{Modules/Setup.local} describing your file:
|
a line to the file \file{Modules/Setup.local} describing your file:
|
||||||
|
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
spam spammodule.o
|
spam spammodule.o
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
|
|
||||||
and rebuild the interpreter by running \program{make} in the toplevel
|
and rebuild the interpreter by running \program{make} in the toplevel
|
||||||
directory. You can also run \program{make} in the \file{Modules}
|
directory. You can also run \program{make} in the \file{Modules/}
|
||||||
subdirectory, but then you must first rebuild \file{Makefile}
|
subdirectory, but then you must first rebuild \file{Makefile}
|
||||||
there by running `\program{make} Makefile'. (This is necessary each
|
there by running `\program{make} Makefile'. (This is necessary each
|
||||||
time you change the \file{Setup} file.)
|
time you change the \file{Setup} file.)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue