Skip to content

Commit

Permalink
To support pip install for model_training package. (#3643)
Browse files Browse the repository at this point in the history
For the Python module: model_training, the original package management
file pyproject.toml was configured with "py-modules =
["model_training"]". However, "py-modules" is typically used for setting
up single file modules, not for Python packages. The original
configuration could possibly cause "pip install ." to fail to install
model_training in the Python environment (only
model_training-1.0.0.dist-info is available under
/usr/local/lib/python/).
  • Loading branch information
zhanglu0704 authored Aug 8, 2023
1 parent aae9e5e commit d7111bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ tests = [
]

[tool.setuptools]
py-modules = ["model_training"]
packages = ["model_training"]

[tool.black]
line-length = 120
Expand Down

0 comments on commit d7111bc

Please sign in to comment.