Skip to content

Commit e4ea524

Browse files
lucylqfacebook-github-bot
authored andcommitted
pybind env var (#2447)
Summary: Pull Request resolved: #2447 Check the value of `EXECUTORCH_BUILD_PYBIND`, by default set to false, and build pybind if on. Previously, seeing error P1196368933 when running ./install_requirements.sh , without `--pybind` flag. Reviewed By: shoumikhin Differential Revision: D54928464 fbshipit-source-id: 2513eff44399cb2396fdee150aefc933af82dc73
1 parent 6b96df4 commit e4ea524

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def run(self):
229229
"egg_info": CustomEggInfoCommand,
230230
}
231231
ext_modules = None
232-
if os.environ.get("EXECUTORCH_BUILD_PYBIND", None):
232+
if os.environ.get("EXECUTORCH_BUILD_PYBIND", "OFF") == "ON":
233233
cmdclass["build_ext"] = CMakeBuild
234234
ext_modules = [CMakeExtension("executorch.extension.pybindings.portable_lib")]
235235

0 commit comments

Comments
 (0)