Conda: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
mNo edit summary |
mNo edit summary |
||
Line 3: | Line 3: | ||
The [http://conda.pydata.org conda package and environment manager] can be used to install NSIS, plugins and header files. | The [http://conda.pydata.org conda package and environment manager] can be used to install NSIS, plugins and header files. | ||
There are two approaches: | There are two possible approaches: | ||
# Using 'conda execute' | # Using 'conda execute' | ||
Line 23: | Line 23: | ||
</highlight-nsis> | </highlight-nsis> | ||
Then compile the | Then compile the file like this: | ||
<pre>conda execute yourinstaller.nsi</pre> | <pre>conda execute yourinstaller.nsi</pre> | ||
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. | 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 <code>makensis</code> as usual. | ||
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 == | == Creating conda environments manually == |
Revision as of 21:13, 17 October 2015
Author: Faph (talk, contrib) |
The conda package and environment manager can be used to install NSIS, plugins and header files.
There are two possible approaches:
- Using 'conda execute'
- Creating conda environments manually
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.
Creating conda environments manually
TODO