mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2026-02-28 17:26:03 +08:00
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:
committed by
Facebook GitHub Bot
parent
b0dd0c8821
commit
ae1387b523
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user