diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2022-08-02 21:03:33 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2022-08-02 21:13:43 -0400 |
commit | e90b97304d50eb1246197014ca2d794987ce1934 (patch) | |
tree | 23e9f77cedeeb30cd3765fd1e35862c2eb89cffb /setuptools/_distutils/command/bdist_msi.py | |
parent | 9b0cf7e1dfd8c3e11a47a9b3c7f4385745d50daf (diff) | |
parent | c397f4c164e0a6f49a1ac3a70f5c80fe05785ed6 (diff) | |
download | python-setuptools-git-e90b97304d50eb1246197014ca2d794987ce1934.tar.gz |
Merge https://github.com/pypa/distutils into bugfix/distutils-164
Diffstat (limited to 'setuptools/_distutils/command/bdist_msi.py')
-rw-r--r-- | setuptools/_distutils/command/bdist_msi.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/setuptools/_distutils/command/bdist_msi.py b/setuptools/_distutils/command/bdist_msi.py index 6e1e1abd..57931c73 100644 --- a/setuptools/_distutils/command/bdist_msi.py +++ b/setuptools/_distutils/command/bdist_msi.py @@ -253,7 +253,7 @@ class bdist_msi(Command): if not target_version: assert self.skip_build, "Should have already checked this" target_version = '%d.%d' % sys.version_info[:2] - plat_specifier = ".%s-%s" % (self.plat_name, target_version) + plat_specifier = ".{}-{}".format(self.plat_name, target_version) build = self.get_finalized_command('build') build.build_lib = os.path.join(build.build_base, 'lib' + plat_specifier) @@ -286,7 +286,7 @@ class bdist_msi(Command): # in Add-Remove-Programs (APR) fullname = self.distribution.get_fullname() if self.target_version: - product_name = "Python %s %s" % (self.target_version, fullname) + product_name = "Python {} {}".format(self.target_version, fullname) else: product_name = "Python %s" % (fullname) self.db = msilib.init_database( @@ -347,7 +347,7 @@ class bdist_msi(Command): for file in os.listdir(dir.absolute): afile = os.path.join(dir.absolute, file) if os.path.isdir(afile): - short = "%s|%s" % (dir.make_short(file), file) + short = "{}|{}".format(dir.make_short(file), file) default = file + version newdir = Directory(db, cab, dir, file, default, short) todo.append(newdir) @@ -1103,12 +1103,12 @@ class bdist_msi(Command): def get_installer_filename(self, fullname): # Factored out to allow overriding in subclasses if self.target_version: - base_name = "%s.%s-py%s.msi" % ( + base_name = "{}.{}-py{}.msi".format( fullname, self.plat_name, self.target_version, ) else: - base_name = "%s.%s.msi" % (fullname, self.plat_name) + base_name = "{}.{}.msi".format(fullname, self.plat_name) installer_name = os.path.join(self.dist_dir, base_name) return installer_name |