From 968aec0e1090f57d021654b1d546da4b706b5405 Mon Sep 17 00:00:00 2001 From: Akul Goel Date: Thu, 27 Jul 2023 12:11:27 -0400 Subject: [PATCH] Fix setup scripts It seems the problem was that the `.gitmodules` file already had the submodule for plugins in it, so it wasn't working. It should now, although for updating plugins, I might switch from git submodules to something else. --- .gitmodules | 3 --- requirements.txt | 1 + setup/setup.py | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitmodules b/.gitmodules index cc72fac..e69de29 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +0,0 @@ -[submodule "akulai-plugins"] - path = akulai-plugins - url = https://github.com/Akul-AI/akulai-plugins diff --git a/requirements.txt b/requirements.txt index 9161d38..ccee342 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,5 +5,6 @@ pyaudio js2py json fastapi[all] +requests # Must use Python 3.10 or above, optional, only for refining code refurb diff --git a/setup/setup.py b/setup/setup.py index 524df9b..708b15f 100644 --- a/setup/setup.py +++ b/setup/setup.py @@ -13,7 +13,7 @@ subdir = "plugins" # Use git submodules to fetch the plugins subdir in the akulai plugins repo -os.system("git submodule add {}".format(repo_url)) +os.system("git submodule add {} --name akulai-plugins".format(repo_url)) os.system("git submodule update --init --recursive") # Move the files from the subdirectory to the local "akulai/plugins" folder