Declaring a CMake extension

cmake_pip.cmake_extension.ExtensionCMake(...) Defines a cmake type extension.
cmake_pip.cmake_extension.build_cmake(dist) Calls cmake to build Yayi
cmake_pip.cmake_extension.setup(*args, **kwargs)

Reference

class cmake_pip.cmake_extension.ExtensionCMake(name, cmake_file, cmake_target=None, cmake_locate_extensions=None, cmake_options=None, cmake_package=None, cmake_src_layout=None, cmake_external_project=None, cmake_install=None, cmake_install_component=None, cmake_builder=None, *args, **kwargs)[source]

Defines a cmake type extension.

  • name : name of the package
  • cmake_target the target used to generate the extension. If empty, the default ALL target will be used.
  • cmake_install: an install command in the cmake sources installs the target in a specific location. Specify cmake_install_component if the install is for a particular component
  • cmake_install_component the component used for installation. See documentation. Implied cmake_install.
  • cmake_file the location of the cmake file or the cmake file itself
  • cmake_options cmake options
  • cmake_src_layout indicates that the layout is a regular one
  • cmake_external_project an external cmake project to download
  • cmake_builder the optional builder for the platform. Defaults to Makefiles on Linux/OSX and VS 2012 on Win32. The Win64 part should be omitted as it is automatically deduced by the current python executable/interpreter.

Overrides of the regular distutils commands

class cmake_pip.cmake_extension.build_cmake(dist)[source]

Calls cmake to build Yayi

cmake_configure(ext, options)[source]

Configuring CMake.

This is the main function for configuring CMake on all platforms. It takes

get_outputs()[source]

Returns the list of files generated by this specific build command