Magic: Support Workspace & add local path pacage?

  • Pixi supports the workspace mode, and also supports adding packages with local paths to the project, but I encountered an error when trying to add a package with a local path to the project using magic?

  • I would like to know if magic also supports workspace? And whether it supports adding packages with local paths to the project?


[workspace]
channels = [
  "https://prefix.dev/pixi-build-backends",
  "https://prefix.dev/conda-forge",
]
platforms = ["win-64", "linux-64", "osx-arm64", "osx-64"]
preview = ["pixi-build"]

[dependencies]
python_bindings = { path = "packages/python_bindings" }
rich_example = { path = "." }
  • This is my sample project, which includes workspace-related modifications.

  • I referenced the pixi workspace configuration to modify the magic configuration. I discovered that magic can understand the workspace mode , but adding a local path package results in an error:

packages/try/try-local on ξ‚  main [!+⇑] on :cloud:   
❯ magic i
  β ‰ default:linux-64     [00:00:00] loading repodata
  β ‰ retrieving metadata  [00:00:00] [────────────────────]    0/2                                                                                                                                
  Γ— failed to extract metadata for 'local_lib'
  ╰─▢ unable to discover communication protocol, the source directory does not contain a supported manifest
2 Likes

Hi there! Support for this is coming soon. Magic hasn’t enabled this yet because workspaces are an extension of the new build system which is still in beta development. Exciting things to come!

5 Likes

That’s great, I’m really looking forward to the arrival of this feature.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.