From 5feafe1f5b1610beca3abe4ac1c5e847ace8e6d0 Mon Sep 17 00:00:00 2001 From: Marius Brehler Date: Mon, 28 Oct 2024 21:05:16 +0100 Subject: [PATCH] [sharktank] Pull in requirements file in subdir Instead of pulling in the upper-level requirements file, only pull in a smaller subset defined in the recently added requirements file. --- sharktank/setup.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sharktank/setup.py b/sharktank/setup.py index d5e4a980f..416b28d16 100644 --- a/sharktank/setup.py +++ b/sharktank/setup.py @@ -11,8 +11,6 @@ from setuptools import find_namespace_packages, setup # type: ignore -THIS_DIR = Path(__file__).resolve().parent -REPO_DIR = THIS_DIR.parent SETUPPY_DIR = os.path.realpath(os.path.dirname(__file__)) @@ -58,7 +56,7 @@ def load_requirement_pins(requirements_file: Path): requirement_pins.update(dict(pin_pairs)) -load_requirement_pins(REPO_DIR / "requirements.txt") +load_requirement_pins(SETUPPY_DIR / "requirements.txt") def get_version_spec(dep: str):