Skip to content

Add documentation on installation via Nix #2

@daspk04

Description

@daspk04

Hi @remicres and @vijdz !

I have added pyotb to Nixpkgs. It's available on both stable and unstable channel of nix packages, should work on any Linux distribution.

Installing a particular python version of pyotb from Nix packages will also install otb compiled for that python version c.f.
I also fix the environment variable OTB_ROOT to point to that otb, so an user don't have to set environment variable just importing pyotb should work. c.f

Installation via Nix:

nix-shell -p python312Packages.pyotb

# Example: specific channel:
nix-shell -I nixpkgs=channel:nixpkgs-unstable -p python312Packages.pyotb

# Example: specific channel and different python version:
nix-shell -I nixpkgs=channel:nixpkgs-unstable -p python313Packages.pyotb

Will it be possible to add this as an alternative option for installation to the documents ?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions