From d8048acc7b376aabebdbaa0ed30ef65132cba4c8 Mon Sep 17 00:00:00 2001 From: "Rafael H. Schloming" Date: Thu, 18 Feb 2010 21:29:59 +0000 Subject: remove extra dots from filenames so as not to confuse windows git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@911596 13f79535-47bb-0310-9956-ffa450edef68 --- python/setup.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'python/setup.py') diff --git a/python/setup.py b/python/setup.py index cb06444240..bdd04d4ddf 100755 --- a/python/setup.py +++ b/python/setup.py @@ -270,22 +270,25 @@ class build_py(preprocessor, _build_py): else: return None, None +def pclfile(xmlfile): + return "%s.pcl" % os.path.splitext(xmlfile)[0] + class install_lib(_install_lib): def get_outputs(self): outputs = _install_lib.get_outputs(self) extra = [] for of in outputs: - if os.path.basename(of) == "amqp.0-10-qpid-errata.xml": - extra.append("%s.ops.pcl" % of) + if os.path.basename(of) == "amqp-0-10-qpid-errata.xml": + extra.append(pclfile(of)) return outputs + extra def install(self): outfiles = _install_lib.install(self) extra = [] for of in outfiles: - if os.path.basename(of) == "amqp.0-10-qpid-errata.xml": - tgt = "%s.ops.pcl" % of + if os.path.basename(of) == "amqp-0-10-qpid-errata.xml": + tgt = pclfile(of) if self.force or newer(of, tgt): log.info("caching %s to %s" % (of, os.path.basename(tgt))) if not self.dry_run: -- cgit v1.2.1