1. Daniel Holth
  2. cpython-packaging

Commits

Daniel Holth  committed 70f75b5 Draft

relative paths in packaging's RESOURCES

  • Participants
  • Parent commits 91c47f3
  • Branches default

Comments (0)

Files changed (1)

File Lib/packaging/command/install_distinfo.py

View file
  • Ignore whitespace
                         writer = csv.writer(f, delimiter=',',
                                             lineterminator='\n',
                                             quotechar='"')
-                        for row in install_data.get_resources_out():
-                            writer.writerow(row)
+                        for fname, fpath in install_data.get_resources_out():
+                            fpath = self.pep376path(fpath, 
+                                                    self.install_base, 
+                                                    self.install_dir)                            
+                            writer.writerow((fname, fpath))
 
                 self.outfiles.append(resources_path)