Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
jafermarq committed Oct 23, 2024
1 parent 4970e42 commit b86afdf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ typer = "^0.12.5"
tomli = "^2.0.1"
tomli-w = "^1.0.0"
pathspec = "^0.12.1"
hatchling = "^1.25.0"
# Optional dependencies (Simulation Engine)
ray = { version = "==2.10.0", optional = true, python = ">=3.9,<3.12" }
# Optional dependencies (REST transport layer)
Expand Down
10 changes: 9 additions & 1 deletion src/py/flwr/cli/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,16 @@ def validate_and_install(
shutil.copy2(item, install_dir / item.name)

try:
# Build wheel
subprocess.run(
["pip", "install", "-e", install_dir, "--no-deps"],
["python", "-m", "hatchling", "build", "-d", install_dir, "-t", "wheel"],
capture_output=True,
text=True,
check=True,
)
# Install wheel
subprocess.run(
["pip", "install", "-e", install_dir / "*.whl", "--no-deps"],
capture_output=True,
text=True,
check=True,
Expand Down

0 comments on commit b86afdf

Please sign in to comment.