Skip to content

Commit a1e33af

Browse files
committed
Update code example about build process
1 parent 30c907c commit a1e33af

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/builds.rst

+7-3
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,17 @@ An example in code:
9090
.. code-block:: python
9191
9292
update_docs_from_vcs(version)
93-
if exists('setup.py'):
93+
config = get_config(project)
94+
if config.python.install.method.setuptools:
9495
run('python setup.py install')
95-
if project.requirements_file:
96-
run('pip install -r %s' % project.requirements_file)
96+
if config.python.install.method.pip:
97+
run('pip install .')
98+
if config.python.install.requirement:
99+
run('pip install -r %s' % config.python.install.requirement)
97100
build_docs(version=version)
98101
copy_files(artifact_dir)
99102
103+
100104
.. note::
101105

102106
Regardless of whether you build your docs with Sphinx or MkDocs,

0 commit comments

Comments
 (0)