Building on MacOS

The darwin build process.

relenv.build.darwin.build_python(env: MutableMapping[str, str], dirs: Dirs, logfp: IO[str]) None

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.darwin.populate_env(env: MutableMapping[str, str], dirs: Dirs) None

Make sure we have the correct environment variables set.

Parameters:
  • env (dict) – The environment dictionary

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

relenv.build.darwin.update_expat(dirs: Dirs, env: MutableMapping[str, str]) None

Update the bundled expat library to the latest version.

Python ships with an older bundled expat. This function updates it to the latest version for security and bug fixes.