Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
8e5f7c22
Commit
8e5f7c22
authored
Feb 10, 2020
by
Hugo van Kemenade
Committed by
GitHub
Feb 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-39586: Deprecate distutils bdist_msi command (GH-18415)
parent
d6bd6b1e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
command/bdist_msi.py
command/bdist_msi.py
+9
-1
tests/test_bdist_msi.py
tests/test_bdist_msi.py
+3
-2
No files found.
command/bdist_msi.py
View file @
8e5f7c22
...
...
@@ -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
...
...
tests/test_bdist_msi.py
View file @
8e5f7c22
"""Tests for distutils.command.bdist_msi."""
import
sys
import
unittest
from
test.support
import
run_unittest
from
test.support
import
run_unittest
,
check_warnings
from
distutils.tests
import
support
...
...
@@ -14,7 +14,8 @@ class BDistMSITestCase(support.TempdirManager,
# minimal test XXX need more tests
from
distutils.command.bdist_msi
import
bdist_msi
project_dir
,
dist
=
self
.
create_dist
()
cmd
=
bdist_msi
(
dist
)
with
check_warnings
((
""
,
DeprecationWarning
)):
cmd
=
bdist_msi
(
dist
)
cmd
.
ensure_finalized
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment