Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
virtuald opened this issue Jan 11, 2024 · 1 comment
Open

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

virtuald opened this issue Jan 11, 2024 · 1 comment

Comments

@virtuald
Copy link
Member

virtuald commented Jan 11, 2024

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

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

@auscompgeek
Copy link
Member

I presume this is the setuptools/wheel fallback in pip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants