1 Star 0 Fork 6

jackie56678/Glass-Engine

forked from Time-Coder/Glass-Engine 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build_glass.py 1002 Bytes
一键复制 编辑 原始数据 按行查看 历史
import subprocess
import sys
import os
import shutil
if os.path.isdir("build"):
shutil.rmtree("build")
if os.path.isdir("python_glass.egg-info"):
shutil.rmtree("python_glass.egg-info")
with open("README_glass.rst", "r", encoding="utf-8") as in_file:
content = in_file.read()
with open("README.rst", "w", encoding="utf-8") as out_file:
out_file.write(content)
with open("setup_glass.py", "r", encoding="utf-8") as in_file:
content = in_file.read()
with open("setup.py", "w", encoding="utf-8") as out_file:
out_file.write(content)
with open("MANIFEST.in", "w", encoding="utf-8") as out_file:
out_file.write(
"""include glass/README_PYPI.md
include glass/LICENSE
include glass/ShaderParser_/pcpp/LICENSE
""")
subprocess.call([sys.executable, "setup.py", "sdist", "bdist_wheel"])
with open("README_glass_engine.rst", "r", encoding="utf-8") as in_file:
content = in_file.read()
with open("README.rst", "w", encoding="utf-8") as out_file:
out_file.write(content)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/jackie56678/Glass-Engine.git
git@gitee.com:jackie56678/Glass-Engine.git
jackie56678
Glass-Engine
Glass-Engine
main

搜索帮助