summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2010-02-13 17:27:59 +0100
committerJulian Andres Klode <jak@debian.org>2010-02-13 17:27:59 +0100
commit24971a75407f0b28f2cb4e890545a0f5825af87d (patch)
tree3fe76bce4e5eb988d89f3083223088479c53f30c /setup.py
parenteb37b3a44fe8e6f15de5211d89fcf63cdf2f6fa6 (diff)
downloadpython-apt-24971a75407f0b28f2cb4e890545a0f5825af87d.tar.gz
* data/templates/*.in: Switch MirrorsFile to relative filenames.
- setup.py: Copy the mirror lists to the build directory - aptsources/distinfo.py: Support relative filenames for MirrorsFile.
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 2fa8198b..b285fcee 100644
--- a/setup.py
+++ b/setup.py
@@ -55,6 +55,10 @@ if len(sys.argv) > 1 and sys.argv[1] == "build":
build.write(line.lstrip("_"))
source.close()
build.close()
+ for template in glob.glob('data/templates/*.mirrors'):
+ import shutil
+ shutil.copy(template, os.path.join("build", template))
+
setup(name="python-apt",
description="Python bindings for APT",