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 | 7ce8a5fde128f01c67bbdf638eacedcdd631cc65 (patch) | |
| tree | 5fbba2708ad5224d06c6cf5192df4a9ef16df98e /qpid/python/setup.py | |
| parent | 5b0e6027035122d27a336b9f6b685ede090b58f5 (diff) | |
| download | qpid-python-7ce8a5fde128f01c67bbdf638eacedcdd631cc65.tar.gz | |
remove extra dots from filenames so as not to confuse windows
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@911596 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/setup.py')
| -rwxr-xr-x | qpid/python/setup.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/qpid/python/setup.py b/qpid/python/setup.py index cb06444240..bdd04d4ddf 100755 --- a/qpid/python/setup.py +++ b/qpid/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: |
