mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Make bdist_* commands respect --skip-build passed to bdist (#10946)
This commit is contained in:
parent
aa26b27503
commit
fbe37dfffe
5 changed files with 43 additions and 25 deletions
|
|
@ -130,18 +130,22 @@ class bdist_msi(Command):
|
|||
self.no_target_optimize = 0
|
||||
self.target_version = None
|
||||
self.dist_dir = None
|
||||
self.skip_build = 0
|
||||
self.skip_build = None
|
||||
self.install_script = None
|
||||
self.pre_install_script = None
|
||||
self.versions = None
|
||||
|
||||
def finalize_options(self):
|
||||
self.set_undefined_options('bdist', ('skip_build', 'skip_build'))
|
||||
|
||||
if self.bdist_dir is None:
|
||||
bdist_base = self.get_finalized_command('bdist').bdist_base
|
||||
self.bdist_dir = os.path.join(bdist_base, 'msi')
|
||||
|
||||
short_version = get_python_version()
|
||||
if (not self.target_version) and self.distribution.has_ext_modules():
|
||||
self.target_version = short_version
|
||||
|
||||
if self.target_version:
|
||||
self.versions = [self.target_version]
|
||||
if not self.skip_build and self.distribution.has_ext_modules()\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue