Cache returns errors if apt closes the connection and deletes the incomplete files.
[quix0rs-apt-p2p.git] / setup.py
1 #!/usr/bin/env python
2
3 import sys
4 from distutils.core import setup
5
6 from debian_bundle import changelog
7
8 f = open('debian/changelog')
9 data = f.read()
10 f.close()
11 c = changelog.Changelog(file=data, max_blocks=1)
12 del data
13
14 setup(
15     name = "apt-p2p",
16     version = c.full_version,
17     author = "Cameron Dale",
18     author_email = "<camrdale@gmail.com>",
19     url = "http://www.camrdale.org/apt-p2p.html",
20     license = "GPL",
21
22     packages = ["apt_p2p", "apt_p2p_Khashmir"],
23
24     scripts = ['apt-p2p.py']
25     )