Skip to content

Commit

Permalink
Update build instructions for a conda environment
Browse files Browse the repository at this point in the history
  • Loading branch information
mdpiper committed Oct 19, 2023
1 parent 1185ae0 commit 78ed711
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,16 @@ into an Anaconda distribution with

### Linux and macOS

To install the C BMI bindings from source with cmake, run
To install the C BMI bindings from source with CMake, run

mkdir _build && cd _build
cmake .. -DCMAKE_INSTALL_PREFIX=<path-to-installation>
make install

where `<path-to-installation>` is the base directory
in which to install the bindings (`/usr/local` is the default).
When using a conda environment,
use the `$CONDA_PREFIX` environment variable.

The installation will look like:

Expand All @@ -54,7 +56,7 @@ An additional prerequisite is needed for Windows:

* Microsoft Visual Studio 2017 or Microsoft Build Tools for Visual Studio 2017

To configure and install the C BMI bindings from source with cmake,
To configure and install the C BMI bindings from source with CMake,
run the following in a [Developer Command Prompt](https://docs.microsoft.com/en-us/dotnet/framework/tools/developer-command-prompt-for-vs)

mkdir _build && cd _build
Expand All @@ -64,10 +66,10 @@ run the following in a [Developer Command Prompt](https://docs.microsoft.com/en-
-DCMAKE_BUILD_TYPE=Release
cmake --build . --target install --config Release

where `<path-to-installation>` is the base directory
in which to install the bindings (`"C:\Program Files (x86)"` is the default;
note that quotes and an absolute path are needed).

where `<path-to-installation>` is the base directory in which to install the bindings.
The default is `"C:\Program Files (x86)"`.
Note that quotes and an absolute path are needed.
When using a conda environment, use `"%CONDA_PREFIX%\Library"`.

## Use

Expand Down

0 comments on commit 78ed711

Please sign in to comment.