let build tests run in conda

Summary: Much of the code is actually available during the conda tests, as long as we look in the right place. We enable some of them.

Reviewed By: nikhilaravi

Differential Revision: D30249357

fbshipit-source-id: 01c57b6b8c04442237965f23eded594aeb90abfb
This commit is contained in:
Jeremy Reizenstein
2021-08-17 04:25:24 -07:00
committed by Facebook GitHub Bot
parent b0dd0c8821
commit ae1387b523
2 changed files with 21 additions and 14 deletions

View File

@@ -29,6 +29,8 @@ def get_pytorch3d_dir() -> Path:
"""
if os.environ.get("INSIDE_RE_WORKER") is not None:
return Path(__file__).resolve().parent
elif os.environ.get("CONDA_BUILD_STATE", "") == "TEST":
return Path(os.environ["SRC_DIR"])
else:
return Path(__file__).resolve().parent.parent