Skip to main content

Install conda package dependencies into a conda environment

Project description

localdeps: Usage

localdeps is meant to be used as an easy way to install all dependencies of a conda package in development into a conda environment.

For example, let's say I'm developing a package named mypackage, and I want to package it as a conda package so other developers can conda install mypackage. The prescribed path to do this in the open source world is to publish as a package on pypi and then to create a feedstock using conda forge to publish the conda package.

If I'm working on closed source packages, I may need to build a conda package without publishing as a pypi package first. Here's the problem: conda does not provide a way to install a package or its dependencies listed in meta.yaml in a development environment the same way that pip does, so it becomes difficult to automate development environment setup.

So here comes localdeps to the rescue:

localdeps --conda-dir conda.recipe --env my-dev-env
pip install -e . --no-deps --no-build-isolation

Now, I only need one copy of the dependencies of my conda package (meta.yaml), and I can develop the code and have changes instantly take effect in the active environment.

Installation

conda install localdeps -c conda-forge

Note: This is not available via pip install because it depends on conda and conda-build, which are not available via pip.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

localdeps-0.0.2.tar.gz (4.3 kB view details)

Uploaded Source

File details

Details for the file localdeps-0.0.2.tar.gz.

File metadata

  • Download URL: localdeps-0.0.2.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.0

File hashes

Hashes for localdeps-0.0.2.tar.gz
Algorithm Hash digest
SHA256 62891d0854e6360a4545fe9991e30b0166f4e6ce6a5e9440afbaf61678093dfa
MD5 592bbb4de247622cbe41c88154457d31
BLAKE2b-256 d28cb91e7bb7d02810faff8547bca810040ab7c10430170fb707ab27d12c0bc1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page