Compile docs when installing
This commit is contained in:
parent
36b1058623
commit
20ec707aa8
2
setup.py
2
setup.py
@ -22,6 +22,7 @@ from sys import argv
|
|||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
from compiler.api import compiler as api_compiler
|
from compiler.api import compiler as api_compiler
|
||||||
|
from compiler.docs import compiler as docs_compiler
|
||||||
from compiler.error import compiler as error_compiler
|
from compiler.error import compiler as error_compiler
|
||||||
|
|
||||||
|
|
||||||
@ -32,6 +33,7 @@ def read(file: str) -> list:
|
|||||||
|
|
||||||
if len(argv) > 1 and argv[1] != "sdist":
|
if len(argv) > 1 and argv[1] != "sdist":
|
||||||
api_compiler.start()
|
api_compiler.start()
|
||||||
|
docs_compiler.start()
|
||||||
error_compiler.start()
|
error_compiler.start()
|
||||||
|
|
||||||
with open("pyrogram/__init__.py", encoding="utf-8") as f:
|
with open("pyrogram/__init__.py", encoding="utf-8") as f:
|
||||||
|
Loading…
Reference in New Issue
Block a user