@@ -356,22 +356,28 @@ Open a miniconda console.
356
356
conda create --yes -p C:\c onda_envs\c pp_pkgs -c conda-forge libboost-headers eigen nlohmann_json msgpack-cxx doctest
357
357
` ` `
358
358
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
+
359
366
# ## Build Python Library from Source
360
367
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.
363
370
Go to a root folder you prefer to save the repositories, open a Git Bash Console.
364
371
365
372
` ` ` shell
366
373
git clone https://github.com/PowerGridModel/power-grid-model.git
367
374
` ` `
368
375
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.
371
377
372
378
` ` ` shell
373
- conda create -n power-grid-env python=3.11
374
- conda activate power-grid-env
379
+ python -m venv .venv
380
+ .venv \S cript \ a ctivate
375
381
` ` `
376
382
377
383
Install from source in develop mode, and run ` pytest` .
@@ -381,13 +387,6 @@ pip install -e .[dev]
381
387
pytest
382
388
` ` `
383
389
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
-
391
390
# ## Build CMake Project
392
391
393
392
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