We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2663439 commit 3f4b66dCopy full SHA for 3f4b66d
install_requirements.py
@@ -10,6 +10,7 @@
10
import re
11
import subprocess
12
import sys
13
+import os
14
15
16
def python_is_compatible():
@@ -117,6 +118,8 @@ def install_requirements(use_pytorch_nightly):
117
118
119
# Install packages directly from local copy instead of pypi.
120
# This is usually not recommended.
121
+ new_env = os.environ.copy()
122
+ new_env["USE_CPP"] = "1" # build torchao kernels
123
subprocess.run(
124
[
125
sys.executable,
@@ -127,6 +130,7 @@ def install_requirements(use_pytorch_nightly):
127
130
"--no-build-isolation",
128
131
*LOCAL_REQUIREMENTS,
129
132
],
133
+ env=new_env,
134
check=True,
135
)
136
0 commit comments