Skip to content

Commit 8ed7351

Browse files
committed
Add pyproject.toml and install script
1 parent 278d864 commit 8ed7351

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

install.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import sys
2+
import subprocess
3+
4+
from pathlib import Path
5+
6+
PARENT_DIR = Path(__file__).parent
7+
8+
9+
def pip_install(package: str) -> None:
10+
subprocess.check_call(
11+
[sys.executable, "-m", "pip", "install", package],
12+
cwd=PARENT_DIR
13+
)
14+
15+
16+
def main() -> None:
17+
pip_install("-e .")
18+
19+
20+
if __name__ == '__main__':
21+
main()

pyproject.toml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
[project]
2+
name = "comfyui-inference-core-nodes"
3+
dynamic = ["version"]
4+
description = ""
5+
authors = [
6+
{ name = "Ionite", email = "[email protected]" }
7+
]
8+
readme = "README.md"
9+
requires-python = ">=3.10,<3.12"
10+
11+
dependencies = []
12+
13+
[project.optional-dependencies]
14+
cuda = []
15+
cpu = []
16+
17+
[tool.setuptools.dynamic]
18+
version = {attr = "inference.__version__"}
19+
20+
[tool.setuptools.packages.find]
21+
where = ["src/"]
22+
include = [
23+
"inference_core_nodes.prompt_expansion.*"
24+
]
25+
26+
[build-system]
27+
requires = ["flit_core >=3.2,<4"]
28+
build-backend = "flit_core.buildapi"

0 commit comments

Comments
 (0)