diff --git a/KLayout-Python-Module.md b/KLayout-Python-Module.md index 38a1fcb..ad888c7 100644 --- a/KLayout-Python-Module.md +++ b/KLayout-Python-Module.md @@ -9,6 +9,23 @@ Auto-generated documentation for the Functions is here: * ```klayout.db``` module: [http://www.klayout.org/downloads/master/doc-qt4/code/module_db.html](http://www.klayout.org/downloads/pymod/doc-qt4/code/module_db.html) * ```klayout.rdb``` module: [http://www.klayout.org/downloads/master/doc-qt4/code/module_rdb.html](http://www.klayout.org/downloads/pymod/doc-qt4/code/module_rdb.html) +## Using the Python package on Windows + +The Python package (either from PyPI or https://www.klayout.org/downloads/master/) needs some 3rd party libraries to be functional: + +1.) Download the 3rd party package from https://www.klayout.org/downloads/klayout-bits-1.0.zip + +2.) Unzip (e.g. under ```c:\klayout-bits-1.0```) + +3.) Install klayout package (here: from PyPI) + +```pip install klayout``` + +4.) Add the 3rd-party packages to the path (sorry, lengthy): + +``` +set PATH=C:\klayout-bits-1.0\msvc2017\x64\curl\bin;c:\klayout-bits-1.0\msvc2017\x64\expat\bin;c:\klayout-bits-1.0\msvc2017\x64\ptw\bin;c:\klayout-bits-1.0\msvc2017\x64\zlib\bin;%PATH% +``` ## Building with ```setuptools``` ```