devicetree-org / dt-schema

Devicetree schema tools
http://www.devicetree.org
BSD 2-Clause "Simplified" License
67 stars 64 forks source link

Local installation instruction not working #130

Closed ConchuOD closed 6 months ago

ConchuOD commented 6 months ago
pip3 install -e .
Defaulting to user installation because normal site-packages is not writeable
Obtaining file:///home/conor/stuff/dt-schema
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
ERROR: Project file:///home/conor/stuff/dt-schema has a 'pyproject.toml' and its build backend is missing the 'build_editable' hook. Since it does not have a 'setup.py' nor a 'setup.cfg', it cannot be installed in editable mode. Consider using a build backend that supports PEP 660.

I dunno jack about pyproject.toml etc so I do not know the fix. I just dropped the -e to install the thing locally :) The commit message swapping over says: When last looked at pyproject.toml, editable installs weren't supported, but they are now. So let's move over to the latest and greatest to avoid this warning. So I suppose there is a way to do this, but the documentation needs an update?

ConchuOD commented 6 months ago

Apparently this was also (like the UNKNOWN problem I mentioned on IRC) caused by the garbage copy of setuptools the distro on this particular machine is providing. I threw away the unclean and installed an copy of setuptools and pip that the distro didn't get its grubby hands on.