Skip to content

Instantly share code, notes, and snippets.

@darsnack
Created December 6, 2023 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darsnack/c03ce1025ff93456ffd3562474958023 to your computer and use it in GitHub Desktop.
Save darsnack/c03ce1025ff93456ffd3562474958023 to your computer and use it in GitHub Desktop.
Poetry environment marker issue
[tool.poetry]
name = "example-project"
version = "0.1.0"
description = ""
authors = ["Test Name <test@gmail.com>"]
[tool.poetry.dependencies]
python = "~3.10"
jax = [
{version="0.4.21", extras=["cuda11_pip"], platform="linux"},
{version="0.4.21", extras=["cpu"], platform="darwin"}
]
jaxlib = [
{version="0.4.21", source="jaxcuda", platform="linux"},
{version="0.4.21", platform="darwin"},
]
[[tool.poetry.source]]
name = "PyPI"
priority = "default"
[[tool.poetry.source]]
name = "jaxcuda"
url = "https://storage.googleapis.com/jax-releases/jax_cuda_releases.html"
priority = "explicit"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment