GithubHelp home page GithubHelp logo

classicvalues / monstructor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mamba-org/monstructor

1.0 1.0 0.0 11 KB

The mamba constructor

License: BSD 3-Clause "New" or "Revised" License

C++ 59.94% CMake 15.82% Python 24.24%

monstructor's Introduction

monstructor, a stand-alone installer generator based on mamba

Note: very early stage software

Monstructor generates standalone installers (similar to constructor for conda) that uses conda packages and the C++ of mamba to install the packages.

The monstructor project is currently a Work-In-Progress. The current idea is to have a installer layout (for Linux) that looks like the following:

  • monstructor binary
  • JSON description of payload (list of repodata snippets including channel, URL, SHA256, file size)
  • concatenated binary tar.bz2 or .conda files

Usage

To use the monstructor, you have to have a conda environment. Currently, mamba needs to be installed from source (but with mamba 0.5.4 it will be enough to have libmamba-static installed!).

First, build monstructor:

  • mkdir build && cd build
  • cmake .. -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX
  • make -j4

With the monstructor binary in place, you can generate new monstructors. For this, run the python script included in example. First, select (or create) an environment, and export it:

  • mamba create -n xtensor xtensor -c conda-forge
  • conda activate xtensor
  • mamba list --json > exported_pkgs.json
  • python examples/test.py build/monstructor ./exported_pkgs.json

This will place a new, bundled executable into the build folder (monstructor.done). You can execute this file:

  • ./build/monstructor.done -p /some/target/prefix

To recreate the environment you previously exported.

monstructor's People

Contributors

wolfv avatar

Stargazers

Classic Values avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.