saketh11 commited on
Commit
3d88677
·
1 Parent(s): 9527e6b

Force legacy setup.py installation to bypass wheel naming issues

Browse files

- Change from pip install to python setup.py install
- This completely bypasses wheel building that causes naming conflicts
- Should finally resolve the CAI installation issue in HF Spaces

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,9 +32,9 @@ def setup_cai_if_needed():
32
  ], cwd=repo_dir, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
33
 
34
  print("Installing CAI from local directory...")
35
- # Install from local directory - this avoids wheel naming issues
36
  subprocess.check_call([
37
- sys.executable, "-m", "pip", "install", "--no-cache-dir", "."
38
  ], cwd=repo_dir)
39
 
40
  import CAI
 
32
  ], cwd=repo_dir, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
33
 
34
  print("Installing CAI from local directory...")
35
+ # Force legacy setup.py installation to bypass wheel building issues
36
  subprocess.check_call([
37
+ sys.executable, "setup.py", "install"
38
  ], cwd=repo_dir)
39
 
40
  import CAI