Esempio n. 1
0
 def get_outputs(self):
     # http://bitbucket.org/yt_analysis/yt/issues/1296
     outputs = _build_py.get_outputs(self)
     outputs.append(
         os.path.join(self.build_lib, 'yt', '__hg_version__.py')
     )
     return outputs
Esempio n. 2
0
    def get_outputs(self, include_bytecode=1):
        outputs = _build_py.get_outputs(self, include_bytecode)

        # add synthesized __init__.py to outputs, so that `pip uninstall`
        # works without leaving it
        outputs.append(self.initfile)
        if include_bytecode:
            if self.compile:
                outputs.append(self.initfile + "c")
            if self.optimize:
                outputs.append(self.initfile + "o")

        return outputs
Esempio n. 3
0
    def get_outputs(self, include_bytecode=1):
        '''Return the list of outputs that would be generated
           if this command were run
        '''
        outputs = _build_py.get_outputs(self, include_bytecode)
        for dirpath, _, filenames in os.walk(self.get_package_dir(
                self.PACKAGE)):
            package = dirpath.split(os.sep)
            for filename in filenames:
                _, module_file = self.get_inout(package, dirpath, filename)
                outputs.append(module_file)
            if include_bytecode:
                if self.compile:
                    outputs.append(module_file + "c")
                if self.optimize > 0:
                    outputs.append(module_file + "o")

        return outputs
Esempio n. 4
0
 def get_outputs(self, *args, **kwargs):
     return _build_py.get_outputs(self, *args, **kwargs) + self.mofiles
Esempio n. 5
0
 def get_outputs(self, *args, **kwargs):
     outputs = build_py.get_outputs(*args, **kwargs)
     outputs.extend(self._library_paths)
     return outputs
Esempio n. 6
0
 def get_outputs(self, *args, **kwargs):
     outputs = build_py.get_outputs(*args, **kwargs)
     outputs.extend(self._library_paths)
     return outputs
Esempio n. 7
0
 def get_outputs(self):
     build_ui = self.get_finalized_command("build_ui")
     build_qm = self.get_finalized_command("build_qm")
     build_rc = self.get_finalized_command("build_rc")
     return (_build_py.get_outputs(self) + build_ui.get_outputs() +
             build_qm.get_outputs() + build_rc.get_outputs())