79751010

Date: 2025-08-30 08:00:35
Score: 0.5
Natty:
Report link

It is a bug in Pycharm:
https://youtrack.jetbrains.com/issue/PY-57566/Support-PEP-660-editable-installs

Pycharm cannot (yet) deal with the advanced ways setuptools installs editable packages. Using either

Should solve this problem. DISCLAIMER, I've only tested the hatchling version, works fine for me.

Background/WHY?

In site-packages, the file mypackage-0.6.77.dist-info/direct_url.json contains infos where the editable package can be found. Installed with hatchling, this file just contains a path. With setuptools, it contains a pointer to .pth file, and this is not understood by Pycharm.

Reasons:
  • Blacklisted phrase (0.5): WHY?
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
Posted by: benzkji