Skip to content

Commit

Permalink
Add: install.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiandongx committed Apr 7, 2019
1 parent 6423560 commit e0ce5a2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
3 changes: 0 additions & 3 deletions install.bat

This file was deleted.

14 changes: 14 additions & 0 deletions install.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
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)

os.system("python setup.py bdist_wheel")
os.system("pip uninstall pyecharts -y")
os.system(
"pip install -U dist/pyecharts-{}-py2.py3-none-any.whl --no-cache-dir".format(
about["__version__"]
)
)

0 comments on commit e0ce5a2

Please sign in to comment.