Use build.os and build.tools

Example using build.os and build.tools in Read the Docs config file.


Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "/home/docs/checkouts/readthedocs.org/user_builds/another-test-stsewd/conda/build-tools-conda/lib/python3.5/subprocess.py", line 383, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/home/docs/checkouts/readthedocs.org/user_builds/another-test-stsewd/conda/build-tools-conda/lib/python3.5/subprocess.py", line 676, in __init__
    restore_signals, start_new_session)
  File "/home/docs/checkouts/readthedocs.org/user_builds/another-test-stsewd/conda/build-tools-conda/lib/python3.5/subprocess.py", line 1289, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'node'
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "/home/docs/checkouts/readthedocs.org/user_builds/another-test-stsewd/conda/build-tools-conda/lib/python3.5/subprocess.py", line 383, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/home/docs/checkouts/readthedocs.org/user_builds/another-test-stsewd/conda/build-tools-conda/lib/python3.5/subprocess.py", line 676, in __init__
    restore_signals, start_new_session)
  File "/home/docs/checkouts/readthedocs.org/user_builds/another-test-stsewd/conda/build-tools-conda/lib/python3.5/subprocess.py", line 1289, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'cargo'
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "/home/docs/checkouts/readthedocs.org/user_builds/another-test-stsewd/conda/build-tools-conda/lib/python3.5/subprocess.py", line 383, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/home/docs/checkouts/readthedocs.org/user_builds/another-test-stsewd/conda/build-tools-conda/lib/python3.5/subprocess.py", line 676, in __init__
    restore_signals, start_new_session)
  File "/home/docs/checkouts/readthedocs.org/user_builds/another-test-stsewd/conda/build-tools-conda/lib/python3.5/subprocess.py", line 1289, in _execute_child
    raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'go'

Read the Docs configuration file used to build this docs (see full file),

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
version: 2

build:
  os: "ubuntu-20.04"
  tools:
    python: "miniconda3-4.7"

sphinx:
  configuration: docs/conf.py

conda:
  environment: environment.yaml

python:
  install:
    - requirements: requirements.txt

Sphinx configuration file used to build this docs (see full file),

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
# -*- coding: utf-8 -*-

# Default settings
project = 'Test Builds'
extensions = [
    'sphinx_autorun',
]

latex_engine = 'xelatex'  # allow us to build Unicode chars


# Include all your settings here
html_theme = 'sphinx_rtd_theme'

import os
os.system('ln -s ../.readthedocs.yaml .')





>>> # Build at
>>> import datetime
>>> datetime.datetime.utcnow()  # UTC
datetime.datetime(2023, 7, 5, 16, 14, 36, 8821)