wpilibsuite / WPILibPi

WPILib Raspberry Pi images designed for FRC (formerly FRCVision)
Other
87 stars 40 forks source link

Install published pynetworktables wheel from PyPI #86

Closed auscompgeek closed 5 years ago

auscompgeek commented 5 years ago

Avoids having to create a (potentially incorrect) version.py manually.

Uses pip to install to generate and install the *.pyc (bytecode) files.

PeterJohnson commented 5 years ago

This does not work. Reverted until we can figure out the right solution.

PeterJohnson commented 5 years ago

The download link was invalid, but even with the correct download link pip3 rejects the wheel.

auscompgeek commented 5 years ago

Ah, darn. Turns out wheels have separate predictable URLs. The correct predictable URL for the wheel is https://files.pythonhosted.org/packages/py3/p/pynetworktables/pynetworktables-2019.0.0-py3-none-any.whl

The tarball can be grabbed from https://files.pythonhosted.org/packages/source/p/pynetworktables/pynetworktables-2019.0.0.tar.gz though.

auscompgeek commented 5 years ago

What was the error message from pip though? Installing from the wheel should definitely work...

PeterJohnson commented 5 years ago

pynetworktables.whl is not a valid wheel filename.

PeterJohnson commented 5 years ago

I think it needs to keep the full version?

auscompgeek commented 5 years ago

Huh, seems so. If we preserve the full filename, we shouldn't have any problems.