module pycode.insetup_helper

Short summary

module pyquickhelper.pycode.insetup_helper

Function to use inside setup.py

source on GitHub

Functions

function

truncated documentation

_filter_out_warning

Filters out (import) warnings from error.

must_build

Determines if the module must be built before running the command in argv.

run_build_ext

Runs setup.py build_ext --inplace.

Documentation

Function to use inside setup.py

source on GitHub

pyquickhelper.pycode.insetup_helper._filter_out_warning(out)[source]

Filters out (import) warnings from error.

Parameters:

out – string

Returns:

filtered string

source on GitHub

pyquickhelper.pycode.insetup_helper.must_build(argv=None)[source]

Determines if the module must be built before running the command in argv.

Parameters:

argv – if None, default to sys.argv

Returns:

boolean

built means calling setup.py build_ext --inplace.

source on GitHub

pyquickhelper.pycode.insetup_helper.run_build_ext(setup_file)[source]

Runs setup.py build_ext --inplace.

Parameters:

setup_file – setup_file

Returns:

output

source on GitHub