robotpy / robotpy-installer

RobotPy installer program
MIT License
5 stars 11 forks source link

pip install -e . in robot directory leads to weirdness #92

Open virtuald opened 7 months ago

virtuald commented 7 months ago

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:

$ 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

Reference: https://www.chiefdelphi.com/t/navx-and-robotpy/448996/14

auscompgeek commented 7 months ago

I presume this is the setuptools/wheel fallback in pip