pdm install skipping GDAL installation from whl (but pip install -e . works) #1874
Unanswered
LucRSquared
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I am experimenting with
pdm
as a tool to package my libraries. I'm experimenting with installing GDAL for a project that needs to work on both Windows and Linux platforms. I created a small test package calledprogdal
and thepyproject.toml
file is:My directory structure is as follow:
At this point I run
pdm install
and it finishes successfully.pdm
also created a.venv
folder at the root of the directory. And I runpdm run tests/test_gdal.py
And get the following error:Any ideas why that is so? A possible clue could be in the
pdm.lock
file where thegdal
package lists the linux url while I am running this on a windows machine?However, if I manually activate the virtual environment and run
pip install -e .
the package installs successfully andfrom osgeo import gdal
works fine on my Windows machine.Your input is greatly appreciated!
EDIT:
I found out that if I delete the Linux line from the
pyproject.toml
file the installation goes well:Which means I misunderstood how to write platform dependent dependencies with
pdm
, any idea how to do that?Beta Was this translation helpful? Give feedback.
All reactions