Building on Windows

The windows build process.

relenv.build.windows.build_python(env, dirs, logfp)

Run the commands to build Python.

Parameters:
  • env (dict) – The environment dictionary

  • dirs (relenv.build.common.Dirs) – The working directories

  • logfp (file) – A handle for the log file

relenv.build.windows.finalize(env, dirs, logfp)

Finalize sitecustomize, relenv runtime, and pip for Windows.

Parameters:
  • env (dict) – The environment dictionary

  • dirs (relenv.build.common.Dirs) – The working directories

  • logfp (file) – A handle for the log file

relenv.build.windows.override_dependency(source, old, new)

Overwrite a dependency string for Windoes PCBuild.

Parameters:
  • source – Python’s source directory

  • old – Regular expression to search for

  • new – Replacement text

relenv.build.windows.patch_file(path, old, new)

Search a file line by line for a string to replace.

Parameters:
  • path (str) – Location of the file to search

  • old – The value that will be replaced

  • new – The value that will replace the ‘old’ value.

relenv.build.windows.populate_env(env, dirs)

Make sure we have the correct environment variables set.

Parameters:
  • env (dict) – The environment dictionary

  • dirs (relenv.build.common.Dirs) – The working directories