GDB (xrefs)
Loading...
Searching...
No Matches
Functions | Variables
python-config Namespace Reference

Functions

 exit_with_usage (code=1)
 
 to_unix_path (path)
 

Variables

list valid_opts = ["prefix", "exec-prefix", "includes", "libs", "cflags", "ldflags", "help"]
 
 opts
 
 args
 
 pyver = sysconfig.get_config_var("VERSION")
 
 getvar = sysconfig.get_config_var
 
 abiflags = getattr(sys, "abiflags", "")
 
list opt_flags = [flag for (flag, val) in opts]
 
 code
 
list flags
 
list libs = ["-lpython" + pyver + abiflags]
 

Function Documentation

◆ exit_with_usage()

python-config.exit_with_usage ( code = 1)

Definition at line 12 of file python-config.py.

◆ to_unix_path()

python-config.to_unix_path ( path)
On Windows, returns the given path with all backslashes
converted into forward slashes.  This is to help prevent problems
when using the paths returned by this script with cygwin tools.
In particular, cygwin bash treats backslashes as a special character.

On Unix systems, returns the path unchanged.

Definition at line 37 of file python-config.py.

References to_unix_path().

Referenced by to_unix_path().

Variable Documentation

◆ abiflags

python-config.abiflags = getattr(sys, "abiflags", "")

Definition at line 29 of file python-config.py.

◆ args

python-config.args

Definition at line 20 of file python-config.py.

◆ code

python-config.code

Definition at line 34 of file python-config.py.

◆ flags

list python-config.flags
Initial value:
1= [
2 "-I" + sysconfig.get_path("include"),
3 "-I" + sysconfig.get_path("platinclude"),
4 ]

Definition at line 58 of file python-config.py.

◆ getvar

python-config.getvar = sysconfig.get_config_var

Definition at line 28 of file python-config.py.

◆ libs

list python-config.libs = ["-lpython" + pyver + abiflags]

Definition at line 67 of file python-config.py.

◆ opt_flags

list python-config.opt_flags = [flag for (flag, val) in opts]

Definition at line 31 of file python-config.py.

◆ opts

python-config.opts

Definition at line 20 of file python-config.py.

◆ pyver

python-config.pyver = sysconfig.get_config_var("VERSION")

Definition at line 27 of file python-config.py.

◆ valid_opts

list python-config.valid_opts = ["prefix", "exec-prefix", "includes", "libs", "cflags", "ldflags", "help"]

Definition at line 9 of file python-config.py.