Conda: Difference between revisions
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{PageAuthor|Faph}} | {{PageAuthor|Faph}} | ||
== What is Conda? == | |||
There are two possible approaches: | [http://conda.pydata.org Conda] is a cross-language package and environment manager. It can be used to install NSIS itself and various plugins and header files. | ||
== Why use Conda for building NSIS installers? == | |||
Conda is particularly good at managing packages and installing required packages and its dependencies. NSIS plugins and macro header files can be distributed as conda packages. A repository of NSIS conda packages is available at [https://anaconda.org/nsis the anaconda.org NSIS channel]. | |||
Conda typically runs scripts in isolated environments. Configuring continuous integration or build servers is straightforward. | |||
== How to use Conda == | |||
There are two possible approaches for building NSIS installers with conda: | |||
# Using 'conda execute' | # Using 'conda execute' | ||
# Creating conda environments manually | # Creating conda environments manually | ||
== Using conda execute == | === Option 1: Using conda execute === | ||
Add this to the top of an NSIS source file: | Add this to the top of an NSIS source file: | ||
Line 31: | Line 41: | ||
You will need to install [http://conda.pydata.org/miniconda.html miniconda] (or the full blown [https://www.continuum.io/anaconda anaconda] first and then [https://anaconda.org/conda-forge/conda-execute conda execute]. | You will need to install [http://conda.pydata.org/miniconda.html miniconda] (or the full blown [https://www.continuum.io/anaconda anaconda] first and then [https://anaconda.org/conda-forge/conda-execute conda execute]. | ||
== Creating conda environments manually == | === Option 2: Creating conda environments manually === | ||
TODO | TODO | ||
[[Category:Development Environments]] | [[Category:Development Environments]] |
Revision as of 15:13, 18 October 2015
Author: Faph (talk, contrib) |
What is Conda?
Conda is a cross-language package and environment manager. It can be used to install NSIS itself and various plugins and header files.
Why use Conda for building NSIS installers?
Conda is particularly good at managing packages and installing required packages and its dependencies. NSIS plugins and macro header files can be distributed as conda packages. A repository of NSIS conda packages is available at the anaconda.org NSIS channel.
Conda typically runs scripts in isolated environments. Configuring continuous integration or build servers is straightforward.
How to use Conda
There are two possible approaches for building NSIS installers with conda:
- Using 'conda execute'
- Creating conda environments manually
Option 1: Using conda execute
Add this to the top of an NSIS source file:
# conda execute # env: # - nsis # - plugin1 # - plugin2 # channels: # - nsis # run_with: makensis
Then compile the file like this:
conda execute yourinstaller.nsi
This will create a temporary isolated conda environment with NSIS and the listed plugins installed. You don't need to have NSIS installed first! Then it simply runs makensis
as usual.
You will need to install miniconda (or the full blown anaconda first and then conda execute.
Option 2: Creating conda environments manually
TODO