KLayout / klayout

KLayout Main Sources
http://www.klayout.org
GNU General Public License v3.0
803 stars 205 forks source link

missing windows wheels for pyhton3.13 #1922

Open joamatab opened 4 days ago

joamatab commented 4 days ago

How can we build Python wheels for Windows on Python 3.13?

Some GDSFactory users are starting to use Python 3.13, but pip install klayout fails for this version. Here’s the relevant GitHub Actions log for reference: GitHub Actions Log

KLayout package files on PyPI: KLayout on PyPI

klayoutmatthias commented 2 days ago

Thanks for this note. 3.13 is simply not included in the azure pipelines. I'll add it and let you know if it works.

Matthias

klayoutmatthias commented 1 day ago

Not that easy unfortunately as they deprecated Py_SetPath in 3.13.

They changed the logic of the initialization, so the code has to be restructured for 3.13. Which is a pain, because there are already #if's for telling Python 2 from 3 and Windows from Linux.

So overall not a simple change.

Matthias

klayoutmatthias commented 1 day ago

I am trying a simple hack now ...

klayoutmatthias commented 1 day ago

I think it worked now. There are Python 3.13 packages for amd64 and x86.

Could you try and let me know if they work?

Thanks,

Matthias