Skip to content

Commit

Permalink
fix(script): update install script
Browse files Browse the repository at this point in the history
  • Loading branch information
minhanghuang committed Jun 22, 2024
1 parent e11241a commit c1ca605
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ cd CyberRT
```shell
sudo python3 install.py
# sudo python3 install.py --platform <your-platform-machine> --install_prefix <your-install-path>
```

> export path
Expand Down
7 changes: 2 additions & 5 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import os
import argparse
import time
import platform

class Install:

Expand Down Expand Up @@ -55,10 +56,6 @@ def _clone_github_repo(self, repo_url, repo_name, *args):
print("clone: {}".format(command))
subprocess.run(command, shell=True)

def _cmd(self, command):
print("[command] {}".format(command))
subprocess.run(command, shell=True)

def _clone_setup(self):
self._clone_github_repo(
"https://github.com/minhanghuang/setup.git",
Expand Down Expand Up @@ -209,7 +206,7 @@ def _clone_dds(self):

def parse_config():
parser = argparse.ArgumentParser(description="install")
parser.add_argument("--platform", type=str, default="x86_64", help="platform")
parser.add_argument("--platform", type=str, default=platform.machine(), help="platform")
parser.add_argument("--install_prefix", type=str, default="install", help="install prefix")
args = parser.parse_args()
return args
Expand Down

0 comments on commit c1ca605

Please sign in to comment.