You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is more an issue to document what I encountered while getting the conda-forge windows build working, as it might confuse us again in the future.
The README indicates that you have to pass --no-use-pep517 (in addition to specifying the correct include/library paths for GDAL).
But when trying to add the windows build for conda-forge (conda-forge/pyogrio-feedstock#7), I first didn't include that flag (because I copied the bld.bat script from Fiona, which also didn't have this, and because I thought that the default to no use build isolation with conda-build would already be equivalent). But, this didn't work, and only after adding --no-use-pep517, the build passed
Now, looking a bit into why this is (I still don't understand why it works without for Fiona ..), it seems that passing the flag or not has an influence on how the additional install options are passed to the compiler.
This is more an issue to document what I encountered while getting the conda-forge windows build working, as it might confuse us again in the future.
The README indicates that you have to pass
--no-use-pep517
(in addition to specifying the correct include/library paths for GDAL).But when trying to add the windows build for conda-forge (conda-forge/pyogrio-feedstock#7), I first didn't include that flag (because I copied the bld.bat script from Fiona, which also didn't have this, and because I thought that the default to no use build isolation with conda-build would already be equivalent). But, this didn't work, and only after adding
--no-use-pep517
, the build passedNow, looking a bit into why this is (I still don't understand why it works without for Fiona ..), it seems that passing the flag or not has an influence on how the additional install options are passed to the compiler.
I could reproduce it locally with
which works, and below an extract of the output where it builds the C files:
but when using the exact same command except with
--no-use-pep517
removed, I get:and the difference is that in the second case, the include directory is not correctly passed through.
I don't fully understand why this is, but some possibly related issues: pypa/setuptools#1928, pypa/pip#5771
Pip's documentation about its PEP517 support: https://pip.pypa.io/en/stable/reference/pip/?highlight=pep517#pep-517-and-518-support
The text was updated successfully, but these errors were encountered: