Skip to content

Commit

Permalink
Fix setup scripts
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Akul2010 committed Jul 27, 2023
1 parent 7db686a commit 968aec0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "akulai-plugins"]
path = akulai-plugins
url = https://github.com/Akul-AI/akulai-plugins
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ pyaudio
js2py
json
fastapi[all]
requests
# Must use Python 3.10 or above, optional, only for refining code
refurb
2 changes: 1 addition & 1 deletion setup/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 968aec0

Please sign in to comment.