Undocumented
Class | Configuration |
No class docstring; 0/11 instance variable, 0/4 class variable, 30/38 methods documented |
Function | all_strings |
Return True if all items in lst are string objects. |
Function | allpath |
Convert a /-separated pathname to one using the OS's path separator. |
Function | appendpath |
Undocumented |
Function | as_list |
Undocumented |
Function | blue_text |
Undocumented |
Function | cyan_text |
Undocumented |
Function | cyg2win32 |
Convert a path from Cygwin-native to Windows-native. |
Function | default_config_dict |
Return a configuration dictionary for usage in configuration() function defined in file setup_<name>.py. |
Function | dict_append |
Undocumented |
Function | dot_join |
Undocumented |
Function | exec_mod_from_location |
Use importlib machinery to import a module modname from the file modfile . Depending on the spec.loader , the module may not be registered in sys.modules. |
Function | filter_sources |
Return four lists of filenames containing C, C++, Fortran, and Fortran 90 module sources, respectively. |
Function | generate_config_py |
Generate config.py file containing system_info information used during building the package. |
Function | get_build_architecture |
Undocumented |
Function | get_cmd |
Undocumented |
Function | get_data_files |
Undocumented |
Function | get_dependencies |
Undocumented |
Function | get_ext_source_files |
Undocumented |
Function | get_frame |
Return frame object from call stack with given level. |
Function | get_info |
Return an info dict for a given C library. |
Function | get_language |
Determine language value (c,f77,f90) from sources |
Function | get_lib_source_files |
Undocumented |
Function | get_mathlibs |
Return the MATHLIB line from numpyconfig.h |
Function | get_num_build_jobs |
No summary |
Function | get_numpy_include_dirs |
Undocumented |
Function | get_pkg_info |
Return library info for the given package. |
Function | get_script_files |
Undocumented |
Function | gpaths |
Apply glob to paths and prepend local_path if needed. |
Function | green_text |
Undocumented |
Function | has_cxx_sources |
Return True if sources contains C++ files |
Function | has_f_sources |
Return True if sources contains Fortran files |
Function | is_local_src_dir |
Return true if directory is local directory. |
Function | is_sequence |
Undocumented |
Function | is_string |
Undocumented |
Function | mingw32 |
Return true when using mingw32 environment. |
Function | minrelpath |
Resolve .. and '.' from path. |
Function | njoin |
Join two or more pathname components + - convert a /-separated pathname to one using the OS's path separator. - resolve .. and . from path. |
Function | red_text |
Undocumented |
Function | sanitize_cxx_flags |
Some flags are valid for C but not C++. Prune them. |
Function | terminal_has_colors |
Undocumented |
Function | yellow_text |
Undocumented |
Variable | cxx_ext_match |
Undocumented |
Variable | f90_ext_match |
Undocumented |
Variable | f90_module_name_match |
Undocumented |
Variable | fortran_ext_match |
Undocumented |
Class | InstallableLib |
Container to hold information on an installable library. |
Function | _commandline_dep_string |
Return commandline representation used to determine if a file needs to be recompiled |
Function | _fix_paths |
Undocumented |
Function | _get_directories |
Undocumented |
Function | _get_f90_modules |
Return a list of Fortran f90 module names that given source file defines. |
Function | _get_headers |
Undocumented |
Function | clean_up_temporary_directory |
Undocumented |
Function | colour_text |
Undocumented |
Function | default_text |
Undocumented |
Function | general_source_directories_files |
Return a directory name relative to top_path and files contained. |
Function | general_source_files |
Undocumented |
Function | get_npy_pkg_dir |
Return the path where to find the npy-pkg-config directory. |
Function | get_path_from_frame |
Return path of the module given a frame object from the call stack. |
Function | get_shared_lib_extension |
Return the correct file extension for shared libraries. |
Function | is_bootstrapping |
Undocumented |
Function | is_glob_pattern |
Undocumented |
Function | make_temp_file |
Undocumented |
Function | msvc_runtime_library |
Return name of MSVC runtime library if Python was built with MSVC >= 7 |
Function | msvc_runtime_major |
Return major version of MSVC runtime coded like get_build_msvc_version |
Function | msvc_runtime_version |
Return version of MSVC runtime library, as defined by __MSC_VER__ macro |
Function | msvc_version |
Return version major and minor of compiler instance if it is MSVC, raise an exception otherwise. |
Function | quote_args |
Quote list of arguments. |
Function | rel_path |
Return path relative to parent_path. |
Function | sorted_glob |
sorts output of python glob for https://bugs.python.org/issue30461 to allow extensions to have reproducible build results |
Variable | _colour_codes |
Undocumented |
Variable | _cxx_ignore_flags |
Undocumented |
Variable | _tdata |
Undocumented |
Variable | _tmpdirs |
Undocumented |
Convert a path from Cygwin-native to Windows-native.
Uses the cygpath utility (part of the Base install) to do the actual conversion. Falls back to returning the original path if this fails.
Handles the default /cygdrive mount prefix as well as the /proc/cygdrive portable prefix, custom cygdrive prefixes such as / or /mnt, and absolute paths such as /usr/src/ or /home/username
Documentation for cygpath utility: https://cygwin.com/cygwin-ug-net/cygpath.html Documentation for the C function it wraps: https://cygwin.com/cygwin-api/func-cygwin-conv-path.html
Parameters | |
path:str | Undocumented |
Returns | |
str | Undocumented |
modname
from the file
modfile
. Depending on the spec.loader
, the module may not be
registered in sys.modules.Generate config.py file containing system_info information used during building the package.
Return an info dict for a given C library.
The info dict contains the necessary options to use the C library.
Configuration.add_npy_pkg_config, Configuration.add_installed_library, get_pkg_info
To get the necessary information for the npymath library from NumPy:
>>> npymath_info = np.distutils.misc_util.get_info('npymath') >>> npymath_info #doctest: +SKIP {'define_macros': [], 'libraries': ['npymath'], 'library_dirs': ['.../numpy/core/lib'], 'include_dirs': ['.../numpy/core/include']}
This info dict can then be used as input to a Configuration
instance:
config.add_extension('foo', sources=['foo.c'], extra_info=npymath_info)
Get number of parallel build jobs set by the --parallel command line argument of setup.py If the command did not receive a setting the environment variable NPY_NUM_BUILD_JOBS is checked. If that is unset, return the number of processors on the system, with a maximum of 8 (to prevent overloading the system if there a lot of CPUs).
Return library info for the given package.
LibraryInfo
instance containing the build information.Configuration.add_npy_pkg_config, Configuration.add_installed_library, get_info
Join two or more pathname components +
- convert a /-separated pathname to one using the OS's path separator.
- resolve ..
and .
from path.
Either passing n arguments as in njoin('a','b'), or a sequence of n names as in njoin(['a','b']) is handled, or a mixture of such arguments.
Return the path where to find the npy-pkg-config directory.
If the NPY_PKG_CONFIG_PATH environment variable is set, the value of that is returned. Otherwise, a path inside the location of the numpy module is returned.
The NPY_PKG_CONFIG_PATH can be useful when cross-compiling, maintaining customized npy-pkg-config .ini files for the cross-compilation environment, and using them when cross-compiling.
Return path of the module given a frame object from the call stack.
Returned path is relative to parent_path when given, otherwise it is absolute path.
Return the correct file extension for shared libraries.