mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 12:57:52 +00:00
Enable docs source compilation on setup
This commit is contained in:
parent
eb27c8c97e
commit
faeb5d6e01
5
setup.py
5
setup.py
@ -22,14 +22,13 @@ from sys import argv
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
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.docs import compiler as docs_compiler
|
||||
|
||||
if len(argv) > 1 and argv[1] != "sdist":
|
||||
api_compiler.start()
|
||||
error_compiler.start()
|
||||
# docs_compiler.start()
|
||||
docs_compiler.start()
|
||||
|
||||
with open("pyrogram/__init__.py", encoding="utf-8") as f:
|
||||
version = re.findall(r"__version__ = \"(.+)\"", f.read())[0]
|
||||
|
Loading…
x
Reference in New Issue
Block a user