mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-39586: Deprecate distutils bdist_msi command (GH-18415)
This commit is contained in:
parent
5305cc9dbf
commit
29b3fc0a18
7 changed files with 31 additions and 3 deletions
|
@ -6,7 +6,9 @@
|
|||
Implements the bdist_msi command.
|
||||
"""
|
||||
|
||||
import sys, os
|
||||
import os
|
||||
import sys
|
||||
import warnings
|
||||
from distutils.core import Command
|
||||
from distutils.dir_util import remove_tree
|
||||
from distutils.sysconfig import get_python_version
|
||||
|
@ -122,6 +124,12 @@ class bdist_msi(Command):
|
|||
'3.5', '3.6', '3.7', '3.8', '3.9']
|
||||
other_version = 'X'
|
||||
|
||||
def __init__(self, *args, **kw):
|
||||
super().__init__(*args, **kw)
|
||||
warnings.warn("bdist_msi command is deprecated since Python 3.9, "
|
||||
"use bdist_wheel (wheel packages) instead",
|
||||
DeprecationWarning, 2)
|
||||
|
||||
def initialize_options(self):
|
||||
self.bdist_dir = None
|
||||
self.plat_name = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue