Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
10 changes: 5 additions & 5 deletions recipes/numojo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,29 +187,29 @@ fn main() raises:

There are three approach to install and use the Numojo package.

### Use magic CLI
### Use pixi CLI

You can use the following command in the terminal to install `numojo`.

```console
magic add numojo
pixi add numojo
```

### Add in toml file

You can add `numojo` in the dependencies section of your toml file.
You can add `pixi` in the dependencies section of your toml file.

```toml
[dependencies]
numojo = "==0.6"
pixi = "==0.7.0"
```

### Build package

This approach involves building a standalone package file `mojopkg`.

1. Clone the repository.
2. Build the package using `magic run package`.
2. Build the package using `pixi run package`.
3. Move the `numojo.mojopkg` into the directory containing the your code.

### Include NuMojo's path for compiler and LSP
Expand Down
8 changes: 4 additions & 4 deletions recipes/numojo/recipe.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
context:
version: "0.6.1"
version: "0.7.0"

package:
name: "numojo"
version: ${{ version }}

source:
- git: https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo.git
rev: f0dea371bfd15df65e917e013e11d6177bfc975a
rev: 2b72ef420f68329a5d99120e0cdb642f027ae837

build:
number: 0
script:
- mojo package numojo -o ${{ PREFIX }}/lib/mojo/numojo.mojopkg
requirements:
host:
- max=25.1.1
- max=25.3
run:
- ${{ pin_compatible('max') }}

Expand All @@ -26,7 +26,7 @@ tests:
- mojo run tests.mojo
requirements:
run:
- max=25.1.1
- max=25.3
- numpy
files:
recipe:
Expand Down