pip installs it as a package if there's a single file in the directory (if there's more than one python module it fails with a puzzling error). That seems bad, but:
I don't think there's much we can do about it other than tell people "don't do that"?
Everything else in the python ecosystem seems to be going towards using pyproject.toml, but maybe that's because usually people are developing packages. There are lots of other python tools like black, pytest, etc that tell the user to store settings in pyproject.toml. Open to other alternatives.
$ pip install -e .
Obtaining file:///home/virtuald/tmp
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build editable ... done
Preparing editable metadata (pyproject.toml) ... done
Building wheels for collected packages: robot
Building editable for robot (pyproject.toml) ... done
Created wheel for robot: filename=robot-0.0.0-0.editable-py3-none-any.whl size=2409 sha256=09ee05001c16b0ef96dc840cf2fdd9c6e935cba772d762ea8a0aef51e9d3a2ce
Stored in directory: /tmp/pip-ephem-wheel-cache-o4od82hn/wheels/42/47/9c/4dfb4e7b9498c9a1934bfc9254dca0e06686b1a26f6ab4804a
Successfully built robot
Installing collected packages: robot
Successfully installed robot-0.0.0
pip installs it as a package if there's a single file in the directory (if there's more than one python module it fails with a puzzling error). That seems bad, but:
pyproject.toml
, but maybe that's because usually people are developing packages. There are lots of other python tools like black, pytest, etc that tell the user to store settings inpyproject.toml
. Open to other alternatives.Reference: https://www.chiefdelphi.com/t/navx-and-robotpy/448996/14