Building on Linux

The linux build process.

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

Build bzip2.

Parameters:
  • env (dict) – The environment dictionary

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

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

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

Build gdbm.

Parameters:
  • env (dict) – The environment dictionary

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

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

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

Build kerberos.

Parameters:
  • env (dict) – The environment dictionary

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

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

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

Build libffi.

Parameters:
  • env (dict) – The environment dictionary

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

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

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

Build libxcrypt.

Parameters:
  • env (dict) – The environment dictionary

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

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

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

Build ncurses.

Parameters:
  • env (dict) – The environment dictionary

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

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

relenv.build.linux.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.linux.build_readline(env: MutableMapping[str, str], dirs: Dirs, logfp: IO[str]) None

Build readline library.

Parameters:
  • env (dict) – The environment dictionary

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

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

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

Build zlib.

Parameters:
  • env (dict) – The environment dictionary

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

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

relenv.build.linux.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.linux.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.