Skip to content

Commit

Permalink
fix(setup): missing module in distribution package (#18)
Browse files Browse the repository at this point in the history
This commit fixes an issue where the code was not being included in the distribution package.

The issue was resolved by adding a line to the setup.py to include the modules.

With this change, the package can now be installed and used as intended

Signed-off-by: Homing So <homingso@foxmail.com>
  • Loading branch information
hominsu authored Jun 30, 2023
1 parent b4a3d56 commit 76e6634
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ classifiers = [
]
dependencies = [
"numpy >=1.21.0",
"pygame==2.1.0",
"pygame>=2.1.0",
]
dynamic = ["version"]

Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ def build_extensions(self):
setuptools.setup(
name="magent2",
version=get_version(),
packages=setuptools.find_packages(),
ext_modules=[CMakeExtension("magent2.libmagent", ".", [])],
cmdclass={"build_ext": CMakeBuild},
)

0 comments on commit 76e6634

Please sign in to comment.