Skip to content

Commit bee1112

Browse files
Merge pull request #1064 from PowerGridModel/bug/documentation-build-guide-correct-virtual-environment
Bug: remove conda from the windows developer build guide
2 parents c4598ed + c3e6862 commit bee1112

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

docs/advanced_documentation/build-guide.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -356,22 +356,28 @@ Open a miniconda console.
356356
conda create --yes -p C:\conda_envs\cpp_pkgs -c conda-forge libboost-headers eigen nlohmann_json msgpack-cxx doctest
357357
```
358358
359+
```{note}
360+
Long paths for (dependencies in) the installation environment might exceed the `maximum path length limitation` set by
361+
Windows, causing the installation to fail.
362+
It is possible to enable long paths in Windows by following the steps in the
363+
[Microsoft documentation](https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry)
364+
```
365+
359366
### Build Python Library from Source
360367
361-
It is recommended to create a `conda` environment.
362-
Clone repository, create and activate `conda` environment.
368+
It is recommended to create a virtual environment.
369+
Clone repository, create and activate virtual environment.
363370
Go to a root folder you prefer to save the repositories, open a Git Bash Console.
364371
365372
```shell
366373
git clone https://github.com/PowerGridModel/power-grid-model.git
367374
```
368375
369-
Then open a Miniforge PowerShell Prompt (or equivalent if you use a different `conda` provider), go to the repository
370-
folder.
376+
Go to the repository folder.
371377
372378
```shell
373-
conda create -n power-grid-env python=3.11
374-
conda activate power-grid-env
379+
python -m venv .venv
380+
.venv\Script\activate
375381
```
376382
377383
Install from source in develop mode, and run `pytest`.
@@ -381,13 +387,6 @@ pip install -e .[dev]
381387
pytest
382388
```
383389
384-
```{note}
385-
Long paths for (dependencies in) the conda installation environment might exceed the `maximum path length limitation`
386-
set by Windows, causing the installation to fail.
387-
It is possible to enable long paths in Windows by following the steps in the
388-
[Microsoft documentation](https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry)
389-
```
390-
391390
### Build CMake Project
392391
393392
If you have installed Visual Studio 2019/2022 (not the build tools), you can open the repo folder as a cmake project.

0 commit comments

Comments
 (0)