Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try fix installs on MacOS #37

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ Poetry site. Then install the package using ::

poetry install

MacOS instructions
------------------

On MacOS specifically you'll need a working C/C++ compiler as well as `swig <https://www.swig.org/>`_. The easiest way to install it is via homebrew: ::

brew install swig


Ideas and Philosophy
====================
Expand Down
67 changes: 57 additions & 10 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ setuptools = "=59.5"
# See https://github.com/python-poetry/poetry/issues/2613 for more
# details.
[tool.poetry.group.gpu.dependencies]
torch = { version = "1.10.2+cu111", source = "torch.org" }
torch = [
{ version = "1.10.2+cu111", source = "torch.org", markers = "sys_platform != 'darwin'" },
{ version = "1.10.2", source = "pypi", markers = "sys_platform == 'darwin'" }
]

# Pure development dependencies when installed via Poetry, but not
# when sourcing from PIP etc.
Expand All @@ -43,7 +46,8 @@ black = "^22.1.0"
gsutil = "=4.66"
isort = "^5.10.1"
gym = {extras = ["atari", "classic_control"], version = "^0.22.0"}
box2d = "2.3.10"
box2d = { version = "2.3.10", markers = "sys_platform != 'darwin'" }
box2d-py = { version = "2.3.8", markers = "sys_platform == 'darwin'" }
pygame = "2.1.0"

[[tool.poetry.source]]
Expand Down