wtools 4.0.0-pre7
ESO waf tools
Loading...
Searching...
No Matches
wtools.config.python Class Reference

Static Public Member Functions

 configure_postload (cnf, requires, **kwargs)
 
 configure_preload (cnf, requires, **kwargs)
 

Static Public Attributes

list requires = []
 
list tools = ["python", "buildcopy"]
 
 defaults
 

Detailed Description

Provides Python support:
- Python3.5+
- Pylint (linting)

Options:
    python=dict(
        pylint_config=path       # Path to pylint configuration file.
        pytest_config=path       # Path to pytest configuration file.
        pytest_verbosity=NUM     # Used as default argument for --verbosity=NUM (def: 1)
        pytest_durations=NUM     # Used as default argument for --durations=NUM
        pytest_durations_min=NUM # Used as default argument for --durations-min=NUM
        extend_embed=True/False  # Configure also for C++ embed/extension (def: True)
        config_defines_strip     # List of defines to strip from python-config output
                                 # (def: ["NDEBUG"])
        config_flags_strip       # List of prefixes of flags (C/CXX) to strip from
                                 # python-config output (def: ["-O"])
        pyo                      # install compiled .pyo files (def: False)
    )

Member Data Documentation

◆ defaults

wtools.config.python.defaults
static
Initial value:
= dict(
pylint_config=os.path.join(
os.path.dirname(__file__), "tools/resources/eso_pylintrc"
),
extend_embed=True,
config_defines_strip=["NDEBUG"],
config_flags_strip=["-O"],
pyo=False,
)

The documentation for this class was generated from the following file: