Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
TNTwise committed Jul 1, 2024
1 parent dfad5fa commit 5456bc3
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions build.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import os
import subprocess
import PyQt5.uic as uic
import argparse

def pipInstall(file):
command = ["python3", "-m", "pip", "install", "-r"].append(file)
command = ["python3", "-m", "pip", "install", "-r"]
command.append(file)
subprocess.run(command)

def installImportLib():
Expand Down Expand Up @@ -115,6 +115,7 @@ def buildNCNNMacOS():

if __name__ == "__main__":
pipInstall("requirements.txt")
import PyQt5.uic as uic
buildenv()
parser = argparse.ArgumentParser(
description="Build RVE"
Expand Down Expand Up @@ -142,11 +143,11 @@ def buildNCNNMacOS():

args = parser.parse_args()

if args.build_mac_ncnn():
if args.build_mac_ncnn:
buildNCNNMacOS()
if args.build_rocm():
if args.build_rocm:
buildROCmLinux()
if args.build_cuda():
if args.build_cuda:
buildCUDALinux()
if args.build_ncnn():
if args.build_ncnn:
buildNCNNLinux()

0 comments on commit 5456bc3

Please sign in to comment.