Thank you! 从 Windows 版邮件<https://go.microsoft.com/fwlink/?LinkId=550986>发送
发件人: Dan Stromberg<mailto:drsali...@gmail.com> 发送时间: 2022年8月19日 8:35 收件人: Python List<mailto:python-list@python.org> 主题: Re: setup.py + cython == chicken and the egg problem On Tue, Aug 16, 2022 at 2:03 PM Dan Stromberg <drsali...@gmail.com> wrote: > Hi folks. > > I'm attempting to package up a python package that uses Cython. > > Rather than build binaries for everything under the sun, I've been > focusing on including the .pyx file and running cython on it at install > time. This requires a C compiler, but I'm OK with that. > > BTW, the pure python version works fine, and the cython version works too > as long as you preinstall cython - but I don't want users to have to know > that :) > For the actual chicken-and-egg problem, I'd needed to include my pyproject.toml in my MANIFEST.in, like: include pyx_treap.pyx pyx_treap.c pyproject.toml -- https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail.python.org%2Fmailman%2Flistinfo%2Fpython-list&data=05%7C01%7C%7C128ce386df164c9d8a3708da817ab65c%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637964661300313663%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=FMteu3dpspfzD4WvRWjnEbeNSr9P0aXrrv467ueM86k%3D&reserved=0 -- https://mail.python.org/mailman/listinfo/python-list