diff options
author | Rafael H. Schloming <rhs@apache.org> | 2010-02-18 21:29:59 +0000 |
---|---|---|
committer | Rafael H. Schloming <rhs@apache.org> | 2010-02-18 21:29:59 +0000 |
commit | d8048acc7b376aabebdbaa0ed30ef65132cba4c8 (patch) | |
tree | 1e9ce7742256bea0daf362f6fe732eb6992edf17 /python/setup.py | |
parent | a7646b55d006c7ac1adaf9f673671384bfa4ebb0 (diff) | |
download | qpid-python-d8048acc7b376aabebdbaa0ed30ef65132cba4c8.tar.gz |
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
Diffstat (limited to 'python/setup.py')
-rwxr-xr-x | python/setup.py | 11 |
1 files changed, 7 insertions, 4 deletions
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: |