mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-05-23 19:17:41 +08:00
18 lines
490 B
Python
18 lines
490 B
Python
import os
|
|
import subprocess
|
|
|
|
def is_termux():
|
|
return "termux" in os.environ.get("HOME", "")
|
|
|
|
def install_ruamel_clib():
|
|
if (is_termux()):
|
|
# https://github.com/termux/termux-packages/issues/16746
|
|
os.environ["CFLAGS"] = "-Wno-incompatible-function-pointer-types"
|
|
subprocess.run(["poetry", "run", "pip", "install", "ruamel-yaml-clib"])
|
|
|
|
def install():
|
|
install_ruamel_clib()
|
|
subprocess.run(["poetry", "install"])
|
|
|
|
if __name__ == "__main__":
|
|
install() |