Skip to content

Commit 5feafe1

Browse files
committed
[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.
1 parent 4ae3bf4 commit 5feafe1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sharktank/setup.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
from setuptools import find_namespace_packages, setup # type: ignore
1313

14-
THIS_DIR = Path(__file__).resolve().parent
15-
REPO_DIR = THIS_DIR.parent
1614
SETUPPY_DIR = os.path.realpath(os.path.dirname(__file__))
1715

1816

@@ -58,7 +56,7 @@ def load_requirement_pins(requirements_file: Path):
5856
requirement_pins.update(dict(pin_pairs))
5957

6058

61-
load_requirement_pins(REPO_DIR / "requirements.txt")
59+
load_requirement_pins(SETUPPY_DIR / "requirements.txt")
6260

6361

6462
def get_version_spec(dep: str):

0 commit comments

Comments
 (0)