steinwurf/kodo-python-package — pull request #1 by petya2164 (2014-07-18 01:16:00+00:00)
Title: Add support to create Python wheels

@jpihl I managed to create Wheels with this setup.py. It was not so easy with setuptools, but we have the wheels here:
http://buildbot.steinwurf.dk:12344/python/
This works on any machine with recent pip, wheel and setuptools (I tried win, mac, debian):
```
cd pip
python setup.py bdist_wheel
```
Then you can install the wheel generated in 'dist' on any compatible machine (it takes only seconds!):
```
sudo pip install kodo-1.0.0-cp27-none-linux_x86_64.whl
```
You can try to upload these to PyPI. Let's see if they accept them ;)
I read that we can upload the wheel files directly with twine: https://github.com/pypa/twine

I have not used fabric for this, because it was a major pain to deal with the temporary folders and the huge downloads (boost, etc) every time. We will also need to clean up after ourselves if we install from source (on Linux). And we should find a way to automate this wheel generation whenever we make a release.
I am not sure about the role of fabric in all this. It would be better to contain all the functionality in kodo-python-package. We can include its waf and wscript in the sdist, then the downloaded tarball will be equivalent to the repo checked out from github. Then we don't need to invoke git in setup.py. We should talk about this tomorrow.