2022-04-10 14:27:12 +00:00
|
|
|
import subprocess
|
2022-04-13 20:14:27 +00:00
|
|
|
|
|
|
|
from bopytex.message import Message
|
2022-04-13 10:26:04 +00:00
|
|
|
from ..message import SubprocessMessage
|
2022-04-10 14:27:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
def latexmk(args: dict, deps, output):
|
|
|
|
compile_process = subprocess.Popen(
|
2022-05-04 16:00:54 +00:00
|
|
|
["latexmk", "-f", deps[0]],
|
2022-04-10 14:27:12 +00:00
|
|
|
stdout=subprocess.PIPE,
|
|
|
|
stderr=subprocess.PIPE,
|
|
|
|
universal_newlines=True
|
|
|
|
)
|
2022-04-13 20:14:27 +00:00
|
|
|
return Message(compile_process.wait(), list(compile_process.stdout), list(compile_process.stderr))
|
2022-04-10 14:27:12 +00:00
|
|
|
|