Open Sinan81 opened 4 years ago
+1 on macOS with homebrew python 3.7
EDIT: Solution for me was to RTFM read the README.md:
#if needed - pip install Cython
git clone https://github.com/rkern/line_profiler.git
find line_profiler -name '*.pyx' -exec cython {} \;
cd line_profiler
pip install . --user
The problem is the generated c files that are included in the package. They are generated by cython from pyx/pxd files. But The c api has changed in 3.7 so they need to be rebuild with an up-to-date version cython.
Can we get a new source releases on pypi with .c code generated by a more modern cython to support python >=3.7?
It doesn't have to be a new version a .post0 would do it
I think Cython should be added to setup_requires
and setup script should compile all Cython files while installation. Distribute pre-compiled Cython files and require the C-compiler anyway... seems it is not a good way. If you distribute your package as binary wheel it should be fully pre-built. If you distribute sources it should be only sources without any pre-built files.
Please see how to add Cython to setup_requires
:
https://stackoverflow.com/a/38057196/419926
getting the build error shown below my setup is:
OS: Centos7 Dependencies were built using Spack: ^py-cython@0.29.7 ^python@3.7.4 ^py-ipython@7.3.0 ^py-backcall@0.1.0 ^py-decorator@4.3.0 ^py-pexpect@4.6.0 ^py-ptyprocess@0.5.1 ^py-pickleshare@0.7.4 ^py-prompt-toolkit@2.0.9 ^py-six@1.12.0 ^py-wcwidth@0.1.7 ^py-pygments@2.3.1 ^py-simplegeneric@0.8.1 ^py-traitlets@4.3.1 ^py-ipython-genutils@0.2.0