Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
25376c4f
Kaydet (Commit)
25376c4f
authored
Agu 02, 2001
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Documentation for the distutils.sysconfig module.
üst
394a47b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
113 additions
and
0 deletions
+113
-0
sysconfig.tex
Doc/dist/sysconfig.tex
+113
-0
No files found.
Doc/dist/sysconfig.tex
0 → 100644
Dosyayı görüntüle @
25376c4f
\section
{
\module
{
distutils.sysconfig
}
---
System configuration information
}
\declaremodule
{
standard
}{
distutils.sysconfig
}
\modulesynopsis
{
Low-level access to configuration information of the
Python interpreter.
}
\moduleauthor
{
Fred L. Drake, Jr.
}{
fdrake@acm.org
}
\moduleauthor
{
Greg Ward
}{
gward@python.net
}
\sectionauthor
{
Fred L. Drake, Jr.
}{
fdrake@acm.org
}
The
\module
{
distutils.sysconfig
}
module provides access to Python's
low-level configuration information. The specific configuration
variables available depend heavily on the platform and configuration.
The specific variables depend on the build process for the specific
version of Python being run; the variables are those found in the
\file
{
Makefile
}
and configuration header that are installed with
Python on
\UNIX
{}
systems. The configuration header is called
\file
{
pyconfig.h
}
for Python versions starting with 2.2, and
\file
{
config.h
}
for earlier versions of Python.
Some additional functions are provided which perform some useful
manipulations for other parts of the
\module
{
distutils
}
package.
\begin{datadesc}
{
PREFIX
}
The result of
\code
{
os.path.normpath(sys.prefex)
}
.
\end{datadesc}
\begin{datadesc}
{
EXEC
_
PREFIX
}
The result of
\code
{
os.path.normpath(sys.exec
_
prefex)
}
.
\end{datadesc}
\begin{funcdesc}
{
get
_
config
_
var
}{
name
}
Return the value of a single variable. This is equivalent to
\code
{
get
_
config
_
vars().get(
\var
{
name
}
)
}
.
\end{funcdesc}
\begin{funcdesc}
{
get
_
config
_
vars
}{
\moreargs
}
Return a set of variable definitions. If there are no arguments,
this returns a dictionary mapping names of configuration variables
to values. If arguments are provided, they should be strings, and
the return value will be a sequence giving the associated values.
If a given name does not have a corresponding value,
\code
{
None
}
will be included for that variable.
\end{funcdesc}
\begin{funcdesc}
{
get
_
config
_
h
_
filename
}{}
Return the full path name of the configuration header. For
\UNIX
,
this will be the header generated by the
\program
{
configure
}
script;
for other platforms the header will have been supplied directly by
the Python source distribution. The file is a platform-specific
text file.
\end{funcdesc}
\begin{funcdesc}
{
get
_
makefile
_
filename
}{}
Return the full path name of the
\file
{
Makefile
}
used to build
Python. For
\UNIX
, this will be a file generated by the
\program
{
configure
}
script; the meaning for other platforms will
vary. The file is a platform-specific text file, if it exists.
This function is only useful on
\POSIX
{}
platforms.
\end{funcdesc}
\begin{funcdesc}
{
get
_
python
_
inc
}{
\optional
{
plat
_
specific
\optional
{
, prefix
}}}
Return the directory for either the general or platform-dependent C
include files. If
\var
{
plat
_
specific
}
is true, the
platform-dependent include directory is returned; if false or
omitted, the platform-independent directory is returned. If
\var
{
prefix
}
is given, it is used as either the prefix instead of
\constant
{
PREFIX
}
, or as the exec-prefix instead of
\constant
{
EXEC
_
PREFIX
}
if
\var
{
plat
_
specific
}
is true.
\end{funcdesc}
\begin{funcdesc}
{
get
_
python
_
lib
}{
\optional
{
plat
_
specific
\optional
{
,
standard
_
lib
\optional
{
, prefix
}}}}
Return the directory for either the general or platform-dependent
library installation. If
\var
{
plat
_
specific
}
is true, the
platform-dependent include directory is returned; if false or
omitted, the platform-independent directory is returned. If
\var
{
prefix
}
is given, it is used as either the prefix instead of
\constant
{
PREFIX
}
, or as the exec-prefix instead of
\constant
{
EXEC
_
PREFIX
}
if
\var
{
plat
_
specific
}
is true. If
\var
{
standard
_
lib
}
is true, the directory for the standard library
is returned rather than the directory for the installation of
third-party extensions.
\end{funcdesc}
The following function is only intended for use within the
\module
{
distutils
}
package.
\begin{funcdesc}
{
customize
_
compiler
}{
compiler
}
Do any platform-specific customization of a
\class
{
distutils.ccompiler.CCompiler
}
instance.
This function is only needed on
\UNIX
{}
at this time, but should be
called consistently to support forward-compatibility. It inserts
the information that varies across
\UNIX
{}
flavors and is stored in
Python's
\file
{
Makefile
}
. This information includes the selected
compiler, compiler and linker options, and the extension used by the
linker for shared objects.
\end{funcdesc}
This function is even more special-purpose, and should only be used
from Python's own build procedures.
\begin{funcdesc}
{
set
_
python
_
build
}{}
Inform the
\module
{
distutils.sysconfig
}
module that it is being used
as part of the build process for Python. This changes a lot of
relative locations for files, allowing them to be located in the
build area rather than in an installed Python.
\end{funcdesc}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment