コード例 #1
0
ファイル: setup.py プロジェクト: bellenot/root
        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')
コード例 #2
0
ファイル: setup.py プロジェクト: zuysal/root
        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')
コード例 #3
0
 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)
コード例 #4
0
 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)