1 Star 0 Fork 245

德古拉 / pyminer

forked from pyminer / pyminer 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
dist.py 1.04 KB
一键复制 编辑 原始数据 按行查看 历史
hzy15610046011 提交于 2021-04-19 21:56 . 提交代码
"""
这个脚本用于制作PyMiner的安装包。
"""
import os
import shutil
DIST_PATH = r"C:\Users\12957\Desktop\pyminer_dist\dist2"
CONDA_PATH = r"C:\Users\12957\Desktop\pyminer_dist\Miniconda3-latest-Windows-x86_64.exe"
CODE_FOLDER = os.path.join(DIST_PATH, "bin")
ADDR = "https://gitee.com/py2cn/pyminer.git"
BRANCH = "master"
PACKUP_COMPONENTS_FOLDER = r"C:\Users\12957\Desktop\pyminer_dist\PyMiner打包组件"
# os.system("start /wait "f" {CONDA_PATH} /InstallationType=JustMe /RegisterPython=0 /S /D={DIST_PATH}")
if not os.path.exists(CODE_FOLDER):
pass
else:
shutil.rmtree(CODE_FOLDER)
# os.mkdir(CODE_FOLDER)
os.system(f"git clone {ADDR} -b {BRANCH} {CODE_FOLDER}")
for d in os.listdir(PACKUP_COMPONENTS_FOLDER):
src = os.path.join(PACKUP_COMPONENTS_FOLDER, d)
dest = os.path.join(DIST_PATH, d)
shutil.copy(src, dest)
PYTHON_PATH = os.path.join(DIST_PATH, "python.exe")
os.system(f"{PYTHON_PATH} -m pip install -r {os.path.join(CODE_FOLDER, 'requirements.txt')} -i "
f"https://mirrors.cloud.tencent.com/pypi/simple")
Python
1
https://gitee.com/voyllente/pyminer.git
git@gitee.com:voyllente/pyminer.git
voyllente
pyminer
pyminer
master

搜索帮助