Commit b8e42eb2 authored by Leon Wu's avatar Leon Wu
Browse files

try alternate way of installing the right version

parent a2b46fb1
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -19,12 +19,11 @@ with zipfile.ZipFile(zip_file_path, 'r') as zip_ref:

# move library itself to current directory
subprocess.run(['mv', 'audiolm-pytorch/audiolm-pytorch-personal_hacks/audiolm_pytorch', '.'])

# move setup.py to current directory for requirements
subprocess.run(['mv', 'audiolm-pytorch/audiolm-pytorch-personal_hacks/setup.py', '.'])

# install requirements from the patched audiolm-pytorch directory
subprocess.run(['pip', 'install', '.'])
subprocess.run(['pip', 'install', 'audiolm-pytorch/audiolm-pytorch-personal_hacks'])

# # move setup.py to current directory for requirements
# subprocess.run(['mv', 'audiolm-pytorch/audiolm-pytorch-personal_hacks/setup.py', '.'])

# remove the rest of the audiolm-pytorch directory
subprocess.run(['rm', '-rf', 'audiolm-pytorch'])