From adc62bd73241c6a3e0562a3b8e60859d02a1d1fd Mon Sep 17 00:00:00 2001 From: mike seiler Date: Fri, 2 Dec 2022 10:41:22 -0700 Subject: [PATCH 1/2] fix for mac to be able to build docsgen-cli. changes python command to python3 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8f780a900..43c362b86 100644 --- a/Makefile +++ b/Makefile @@ -366,7 +366,7 @@ snap: lotus lotus-miner lotus-worker # separate from gen because it needs binaries docsgen-cli: lotus lotus-miner lotus-worker - python ./scripts/generate-lotus-cli.py + python3 ./scripts/generate-lotus-cli.py ./lotus config default > documentation/en/default-lotus-config.toml ./lotus-miner config default > documentation/en/default-lotus-miner-config.toml .PHONY: docsgen-cli From 65a91f38e083dd512f947003ccc1f19369389f08 Mon Sep 17 00:00:00 2001 From: mike seiler Date: Fri, 2 Dec 2022 10:46:09 -0700 Subject: [PATCH 2/2] change supported version of python to 3 --- scripts/generate-lotus-cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate-lotus-cli.py b/scripts/generate-lotus-cli.py index 7999603b2..b0d3fd19d 100644 --- a/scripts/generate-lotus-cli.py +++ b/scripts/generate-lotus-cli.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # Generate lotus command lines documents as text and markdown in folder "lotus/documentation/en". -# Python 2.7 +# Python 3 import os