pyecharts/install.py
陈键冬 723432b404
V121 (#1205)
* 🔨 minor refactoring

* Fix: #1197

* Update: v1.2.1
2019-06-19 10:29:25 +08:00

16 lines
503 B
Python

import os
here = os.path.abspath(os.path.dirname(__file__))
about = {}
with open(os.path.join(here, "pyecharts", "_version.py")) as f:
exec(f.read(), about)
UNINSTALL = "{} uninstall pyecharts -y"
INSTALL = "{} install -U dist/pyecharts-{}-py3-none-any.whl --no-cache-dir"
os.system("python setup.py bdist_wheel")
os.system(UNINSTALL.format("pip"))
os.system(UNINSTALL.format("pip3"))
os.system(INSTALL.format("pip", about["__version__"]))
os.system(INSTALL.format("pip3", about["__version__"]))