Skip to content

[Proposal] Can the dependency box2d-py==2.3.8 be replaced with Box2D==2.3.10, which will simplify the installation? #1324

Open
@moretouch

Description

@moretouch

Proposal

replace dependency box2d-py==2.3.8 to Box2D==2.3.10, will simplify the installation.
hoping that more professional and trustworthy community members can test its function and check its security.

Motivation

During the process of learning gym, I am always blocked by the dependency box2d-py every time I install it. The official has stopped maintaining this project, and there are very few built distributions in the official pypi repository. There are a large number of similar installation errors in issues and on the internet. A c++ compilation environment is required to install the box2d-py dependency normally, which is actually unnecessary.

The community provides the Box2D package (https://pypi.org/project/Box2D/). I downloaded the project code, changed the dependency configuration in pyproject.toml to Box2D ==2.3.10, and made no other changes. Installation was very easy, and there were no issues with initial use. This should reduce the difficulty for many beginners.

This may require more testing. I'm not very sure about the security of the Box2D package. I'm just making a suggestion, hoping that more professional and trustworthy community members can test its function and check its security.

Pitch

....
[project.optional-dependencies]
# Update dependencies in `all` if any are added or removed
atari = ["ale_py >=0.9"]
box2d = ["Box2D ==2.3.10", "pygame >=2.1.3", "swig ==4.*"]

....

all = [
    # All dependencies above except accept-rom-license
    # NOTE: No need to manually remove the duplicates, setuptools automatically does that.
    # atari
    "ale_py >=0.9",
    # box2d
    "Box2D ==2.3.10",
....

]
....

Alternatives

No response

Additional context

No response

Checklist

  • I have checked that there is no similar issue in the repo

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions