How can I build the python package for klayout on Linux?

Hi, Matthias

I have built the klayout code from github. It works great.

From the code tree, I guess pya and pymod should be the API wrapper for python. However, they all work embedded in kaylayout framework. In PyPi, there is independent klayout packge for python, built by you and Thomaslima. Can you tell me how to do the same python package build as you did?

Thank you very much.
Mountqi

Comments

  • edited December 2020

    Hi,

    actually PyPI package is build by a Travis job :) You'll find the details in ".travis.yml" in the sources.

    The build is based on "setup.py" (setuptools). Provided you have the necessary Linux packages (gcc, libcurl-devel, python-devel ...), all you need to do is to say

    python setup.py install
    

    Matthias

  • thank you, Matthias.

    setup.py works fine.

Sign In or Register to comment.