Skip to content

Commit

Permalink
update install doc
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanming-hu committed Apr 27, 2019
1 parent abce0c7 commit 168f5dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Ubuntu, Arch Linux, and Mac OS X
python3 install.py
Note, if python complains that a package is missing, simply rerun install.py and the package should be loaded.

Windows
-------------------------------
Download and execute `this script <https://raw.githubusercontent.com/yuanming-hu/taichi/master/install.py>`_ with python3.
Expand Down
7 changes: 4 additions & 3 deletions python/taichi/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,12 @@ def main(debug=False):
os.chdir(tc.get_directory('projects'))
pkg = sys.argv[2]
if pkg not in packages:
tc.error('package {} not found.'.format(pkg))
url = pkg
pkg = pkg.split('/')[-1]
else:
tc.info('Installing package {}...'.format(pkg))
url = packages[pkg]
os.system('git clone {} {} --depth=1'.format(url, pkg))
tc.info('Cloning and building package {}...'.format(pkg))
os.system('git clone {} {}'.format(url, pkg))
tc.core.build()
elif mode == "asm":
fn = sys.argv[2]
Expand Down

0 comments on commit 168f5dc

Please sign in to comment.