Commit 5951f626 authored by Jason R. Coombs's avatar Jason R. Coombs

Also allow the target to be overridden.

parent 3d71f8b9
...@@ -16,7 +16,7 @@ class Installer: ...@@ -16,7 +16,7 @@ class Installer:
nsp = self._get_all_ns_packages() nsp = self._get_all_ns_packages()
if not nsp: if not nsp:
return return
filename, ext = os.path.splitext(self.target) filename, ext = os.path.splitext(self._get_target())
filename += self.nspkg_ext filename += self.nspkg_ext
self.outputs.append(filename) self.outputs.append(filename)
log.info("Installing %s", filename) log.info("Installing %s", filename)
...@@ -30,6 +30,9 @@ class Installer: ...@@ -30,6 +30,9 @@ class Installer:
with open(filename, 'wt') as f: with open(filename, 'wt') as f:
f.writelines(lines) f.writelines(lines)
def _get_target(self):
return self.target
_nspkg_tmpl = ( _nspkg_tmpl = (
"import sys, types, os", "import sys, types, os",
"pep420 = sys.version_info > (3, 3)", "pep420 = sys.version_info > (3, 3)",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment