Hey, good morning all - I was wondering if there i...
# plugins
b
Hey, good morning all - I was wondering if there is an up-to-date example of a plugin to compile cython code for a python project. I see it’s mentioned here: https://www.pantsbuild.org/docs/existing-repositories#5-check-out-writing-a-plugin
Some example plugins that users have written:
• Cython support
Web search shows an example here - but this is outdated now I think: https://github.com/jsirois/pants-issue-6029-pantsbug-example/tree/master/plugins/cython
w
At last check, there isn't an existing plugin (https://github.com/pantsbuild/pants/issues/14752). Is your use case one where you could build a python distribution using a custom setup.py? https://www.pantsbuild.org/docs/python-distributions#setuppy One example of that is here: https://github.com/houtenjack/pants-cython-minimal-example
Also, could something like this help? https://github.com/pantsbuild/pants/tree/main/testprojects/src/python/mypyc_fib It uses
mypyc
to compile some code, but it may be a straight path to
cython
(I just haven't looked much into it yet)
b
Hi @wide-midnight-78598, thank you very much for your suggestions - I will take a look
👍 1
h
Hey @calm-ambulance-65371, would you be willing to share your plugin by chance? I think that was yours we mention in the docs
s
Hi everyone, any updates on cython plugin?
2