caisan / libtorrent

Automatically exported from code.google.com/p/libtorrent
Other
0 stars 0 forks source link

Publish libtorrent on PyPI #441

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Having libtorrent published on PyPI and thus making it installable via tools 
like pip would make it a lot easier to deploy python programs build on 
libtorrent as they can properly declare a dependency that way.

This would mean making libtorrent installable via pythons setuptools/distribute 
mechanisms.

Original issue reported on code.google.com by moralezs...@gmail.com on 12 Mar 2013 at 2:45

GoogleCodeExporter commented 8 years ago
What's involved in doing this?

Original comment by arvid.no...@gmail.com on 13 Mar 2013 at 4:47

GoogleCodeExporter commented 8 years ago
Basically, this means that you have to build an sdist package with `python 
setup.py sdist`. This package needs to be compilable on the target system with 
`python setup.py build`. This build may still require stuff like libboost-dev 
or libtorrent-dev packages to be installed on the server.

From what I can see this would require two major adjustments to the setup.py
 1. Ship python related header files with the sdist.
 2. Have some way to detect propper libboost linking names, eg. on debian that would be -lboost_python-mt-py<python-version>, eg -lboost_python-mt-py27
 3. Make sure 2. also works for other required libs (not required on debian systems).

When the sdist tgz compiles properly, it is simply a matter of running `python 
setup.py sdist upload` to upload it to pypi.

Original comment by moralezs...@gmail.com on 4 Apr 2013 at 7:53