def write_record(self, bdist_dir, distinfo_dir): _bdist_wheel.write_record(self, bdist_dir, distinfo_dir) # add allDict.cxx.pch to record record_path = os.path.join(distinfo_dir, 'RECORD') with open(record_path, 'a') as record_file: record_file.write(os.path.join('cppyy_backend', 'etc', 'allDict.cxx.pch')+',,\n')
def write_record(self, bdist_dir, distinfo_dir): if self.azure_namespace_package: # Split and remove last part, assuming it's "nspkg" subparts = self.azure_namespace_package.split("-")[0:-1] folder_with_init = [os.path.join(*subparts[0 : i + 1]) for i in range(len(subparts))] for azure_sub_package in folder_with_init: init_file = os.path.join(bdist_dir, azure_sub_package, "__init__.py") if os.path.isfile(init_file): logger.info("manually remove {} while building the wheel".format(init_file)) os.remove(init_file) else: raise ValueError("Unable to find {}. Are you sure of your namespace package?".format(init_file)) bdist_wheel.write_record(self, bdist_dir, distinfo_dir)
def write_record(self, bdist_dir, distinfo_dir): if self.azure_namespace_package: # Split and remove last part, assuming it's "nspkg" subparts = self.azure_namespace_package.split('-')[0:-1] folder_with_init = [os.path.join(*subparts[0:i+1]) for i in range(len(subparts))] for azure_sub_package in folder_with_init: init_file = os.path.join(bdist_dir, azure_sub_package, '__init__.py') if os.path.isfile(init_file): logger.info("manually remove {} while building the wheel".format(init_file)) os.remove(init_file) else: raise ValueError("Unable to find {}. Are you sure of your namespace package?".format(init_file)) bdist_wheel.write_record(self, bdist_dir, distinfo_dir)