Closed bobvanderlinden closed 8 years ago
Never created a PyPi setup but shouldn't be too hard.
Here you can find an example of what I did previously to add a setup.py: https://github.com/bobvanderlinden/machinetalk-protobuf/blob/master/python/setup.py
It would also compile the proto files to python, which was based on what the Protobuf library itself did for its setup.py. That can be found here: https://github.com/google/protobuf/blob/master/python/setup.py
Thanks, I hope to get this done before the meetup.
@bobvanderlinden this was pretty much completed. Why has nobody created a PR yet?
I know this branch also solves the namspacing issue meaning that some modifications are required when the next merge back to Machinekit is done. However, the changes are trivial and very easy to do. Here is my branch with the 2 fixes and rebased to master https://github.com/strahlex/machinetalk-protobuf/tree/python-setup
@strahlex Good question. I thought there were some problems with compatiblity (like with nanopb). I apparently only mentioned it in #22 and probably forgot about it when I switched to node and did https://github.com/bobvanderlinden/machinetalk-protobuf-node.
Has been merged https://github.com/machinekit/machinetalk-protobuf/pull/36
Like Node, Python developers are used to installing packages through pypi using
pip install {package}
. It would be nice if we could create and publish a Python package for machinetalk-protobuf, so that other projects can depend on this without developers needing to fetch source and install things manually.