I've googled around and found out about how to install Cython and use it to compile python and cython "typed" code. After watching a number of tutorials extolling its virtues and proclaiming how easy it is, I've taken the plunge.
Here's the details:
- I'm on a Mac, latest OS 15.3.2
- Using VSCode to write/debug code
- I've Homebrew installed C with homebrew (GCC)
- Version of python: 3.13.2
- I've "pip3 installed" Cython - I've installed the Cython extension in VS code - I've created a setup.py file which goes in the same folder as my project files (both .py and .pyx) Here's what that setup.py looks like:
--
---
You received this message because you are subscribed to the Google Groups "cython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cython-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/cython-users/8e633d2b-647f-4ce4-96e7-dbb3574e522an%40googlegroups.com.
--
Only answering a tiny bit of this, but: I wouldn't get too
worried by what vscode recognises as a module. I think it tends to
ignore extension modules because it's hard to introspect them
without executing them which it treats as a security risk. So
worry when it fails to import, not just because of the red
underlines.
To view this discussion visit https://groups.google.com/d/msgid/cython-users/951a785b-7ae7-468e-86c4-0113f1687707n%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/cython-users/951a785b-7ae7-468e-86c4-0113f1687707n%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/cython-users/dede0b85-2ed2-48ee-adc3-762d8a8809ffn%40googlegroups.com.