diff options
| author | Sebastian Heinlein <sebi@sebi-laptop> | 2006-11-25 21:07:03 +0100 |
|---|---|---|
| committer | Sebastian Heinlein <sebi@sebi-laptop> | 2006-11-25 21:07:03 +0100 |
| commit | 06782d97b7649731cd29a18dc41302d1dbe01d2c (patch) | |
| tree | 65608feade5ad67da68b660b4aa93de458e547b9 | |
| parent | e807b5ae883a29c0ce9439af79e1ae7c16053790 (diff) | |
| download | python-apt-06782d97b7649731cd29a18dc41302d1dbe01d2c.tar.gz | |
* intltool-merge is not the correct solution for the templates
replaced by a small code in setup.py
| -rw-r--r-- | setup.cfg | 4 | ||||
| -rwxr-xr-x | setup.py | 14 |
2 files changed, 15 insertions, 3 deletions
@@ -1,5 +1,5 @@ [build] l10n=True -merge-files=["build/templates", ["data/templates/Ubuntu.info.in",\ - "data/templates/Debian.info.in"] +[build_l10n] +domain=python-aptsources @@ -3,13 +3,25 @@ from distutils.core import setup import glob, os, commands, sys from DistUtilsExtra.distutils_extra import build_extra, build_l10n +templates = [] +if not os.path.exists("build/data/templates/"): + os.makedirs("build/data/templates") +for template in glob.glob('data/templates/*.info.in'): + source = open(template, "r") + build = open(os.path.join("build", template[:-3]), "w") + lines = source.readlines() + for line in lines: + build.write(line.lstrip("_")) + source.close() + build.close() + setup( name = 'python-aptsources', version = '0.0.1', description = 'Abstratcion of the sources.list', packages = ['AptSources'], data_files = [('share/python-aptsources/templates', - glob.glob('build/templates/*.info'))], + glob.glob('build/data/templates/*.info'))], license = 'GNU GPL', platforms = 'posix', cmdclass = { "build" : build_extra, |
