guglielmosanchini / conda-metis

An aid to installing METIS (https://metis.readthedocs.io/en/latest/) for Python in Windows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This repository is a very slight modification of https://github.com/menpo/conda-metis. Its aim is to help installing the METIS library on Windows, to use it in ClustViz and ClustVizGUI.

How to install METIS library on Windows 10:

  • download and install Cmake (https://cmake.org/download/)
  • open the Command Prompt, go to the ClustViz project folder and execute (you can always manually download the zip and extract it in the project folder):
powershell -command "& { iwr https://github.com/guglielmosanchini/conda-metis/archive/master.zip -OutFile conda-metis-master.zip }"
powershell -nologo -noprofile -command "& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::ExtractToDirectory('conda-metis-master.zip', '.'); }"
cd conda-metis-master
.\vsgen
move /y gk_arch.h GKlib/gk_arch.h
cd build/windows
msbuild METIS.sln
setx METIS_DLL your_path_to_here\conda-metis-master\build\windows\libmetis\Release\metis.dll

The last line could have also been:

set METIS_DLL=your_path_to_here\conda-metis-master\build\windows\libmetis\Release\metis.dll

but the latter is local, whereas the former is global. These instructions have been taken from here and here, with slight modifications.

Other useful commands could be:

reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\4.0 /v MSBuildOverrideTasksPath /d "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin" /f
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersion\4.0 /v MSBuildToolPath /d "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin" /f

About

An aid to installing METIS (https://metis.readthedocs.io/en/latest/) for Python in Windows

License:Other


Languages

Language:C 97.6%Language:C++ 1.1%Language:CMake 0.5%Language:Objective-C 0.4%Language:Makefile 0.2%Language:Batchfile 0.1%Language:Shell 0.0%