Skip to content

Commit

Permalink
fix usage install_data
Browse files Browse the repository at this point in the history
  • Loading branch information
rmmancom committed May 30, 2024
1 parent 858f5d8 commit 24b175f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions setuptools/_distutils/command/install_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ def run(self):
"setup script did not provide a directory for "
f"'{f}' -- installing right in '{self.install_dir}'"
)
(out, _) = self.copy_file(f, self.install_dir)
dst = os.path.join(self.install_dir, os.path.basename(f))
(out, _) = self.copy_file(f, dst)
self.outfiles.append(out)
else:
# it's a tuple with path to install to and a list of files
Expand All @@ -74,7 +75,8 @@ def run(self):
# Copy files, adding them to the list of output files.
for data in f[1]:
data = convert_path(data)
(out, _) = self.copy_file(data, dir)
dst = os.path.join(dir, os.path.basename(data))
(out, _) = self.copy_file(data, dst)
self.outfiles.append(out)

def get_inputs(self):
Expand Down

0 comments on commit 24b175f

Please sign in to comment.