Spaces:
Running
Running
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
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 |
-
#
|
| 36 |
subprocess.check_call([
|
| 37 |
-
sys.executable, "
|
| 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
|