Closed boegel closed 3 months ago
Hi, the .c
files are generated by Cython at build time. Cython is therefore listed as a build dependency in pyproject.toml
. When you use --no-build-isolation
, this is ignored and you need to ensure yourself that the build dependencies are available.
So you would need to either drop --no-build-isolation
or install Cython
(and setuptools_scm
) manually. Note that Cython is not a runtime dependency. pip installs the build dependencies into a temporary virtual environment which is separate from the environment into which the software itself is installed. If you have to keep using --no-build-isolation
, I would recommend you do something similar, otherwise your target prefix may be a bit unclean as you would find a cython
binary in there.
@marcelm Thanks a lot for the lightning-fast reply!
The problem was indeed that Cython
wasn't available. I somehow knew that, and knew it would be necessary, but assumed just making sure that it's available wouldn't be sufficient.
It is though, so case closed.
Running this command:
in the unpacked source directory for
dnaio
v1.2.1 fails with:The error is pretty clear, and based on #83 I know that
src/dnaio/_core.c
is supposed to be generated automatically, but in this case that's clearly not happening.I guess this is because the bit in
setup.py
that is responsible for this isn't being picked up, perhapspip
ignores thesetup.py
when there's apyproject.toml
around (not sure about that)Any suggestions here? Is there a way to manually trigger the generation of
_core.c
before running thepip install
command?