Git Product home page Git Product logo

conda-recipes's Introduction

A collection of Conda recipes used internally at Memfault but shared broadly.

The packages can be found on the Anaconda Package Repository

Using

To use any of thesee packages in your own Conda environments, just add memfault to the top of the environment.yml in your project:

channels:
  - memfault
  - conda-forge
  - nodefaults

Since all of these packages are built using Conda Forge's package pinnings (https://github.com/conda-forge/conda-forge-pinning-feedstock/blob/master/recipe/conda_build_config.yaml), using Conda Forge as the base is heavily suggested.

Building

To build any of the following packages (macOS and Linux Ubuntu 18.04 tested):

# Create build environment
$ conda create -n build
$ conda activate build
$ conda install conda-build anaconda-client

# Build specific recipe
$ cd <some_recipe_dir>
$ conda build -c conda-forge .

# Successful build prints an upload command
$ anaconda upload ...

Docker for Linux

So you don't want to build on your native machine? That's fine!

$ docker run -ti -v <path_to_conda-recipes>:/conda-recipes condaforge/miniforge3  /bin/bash
$ apt update && apt install build-essential
$ conda create -n build conda-build anaconda-client python=3.8
$ conda activate build
$ cd /conda-recipes/<recipe>
$ conda build -c conda-forge .

# Successful build prints an upload command
$ anaconda upload ...

Building on macOS

We follow Conda Build's (and Conda Forge's) strategy for building macOS packages.

As noted in the conda_build_config.yaml of each recipe, we use the MacOS 10.9 SDK.

CONDA_BUILD_SYSROOT:
  - /opt/MacOSX10.9.sdk        # [osx]

To download and install this SDK, you can find the package here: https://github.com/phracker/MacOSX-SDKs/releases

$ sudo mv <10.9 SDK> /opt/MacOSX10.9.sdk

conda-recipes's People

Contributors

martijnthe avatar mattkelly avatar tyhoff 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.