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
b9018c0a
Commit
b9018c0a
authored
Jan 26, 2010
by
Tarek Ziadé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bdist_msi imports and added a test module for distutils.command.bdist_msi
parent
36c50d52
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
3 deletions
+26
-3
command/bdist_msi.py
command/bdist_msi.py
+3
-3
tests/test_bdist_msi.py
tests/test_bdist_msi.py
+23
-0
No files found.
command/bdist_msi.py
View file @
b9018c0a
...
@@ -6,15 +6,15 @@
...
@@ -6,15 +6,15 @@
"""
"""
Implements the bdist_msi command.
Implements the bdist_msi command.
"""
"""
import
sys
,
os
import
sys
,
os
from
sysconfig
import
get_python_version
,
get_platform
from
distutils.core
import
Command
from
distutils.core
import
Command
from
distutils.dir_util
import
remove_tree
from
distutils.dir_util
import
remove_tree
from
distutils.sysconfig
import
get_python_version
from
distutils.version
import
StrictVersion
from
distutils.version
import
StrictVersion
from
distutils.errors
import
DistutilsOptionError
from
distutils.errors
import
DistutilsOptionError
from
distutils.util
import
get_platform
from
distutils
import
log
from
distutils
import
log
import
msilib
import
msilib
from
msilib
import
schema
,
sequence
,
text
from
msilib
import
schema
,
sequence
,
text
from
msilib
import
Directory
,
Feature
,
Dialog
,
add_data
from
msilib
import
Directory
,
Feature
,
Dialog
,
add_data
...
...
tests/test_bdist_msi.py
0 → 100644
View file @
b9018c0a
"""Tests for distutils.command.bdist_msi."""
import
unittest
import
sys
from
distutils.tests
import
support
@
unittest
.
skipUnless
(
sys
.
platform
==
"win32"
,
"These tests are only for win32"
)
class
BDistMSITestCase
(
support
.
TempdirManager
,
support
.
LoggingSilencer
,
unittest
.
TestCase
):
def
test_minial
(
self
):
# minimal test XXX need more tests
from
distutils.command.bdist_msi
import
bdist_msi
pkg_pth
,
dist
=
self
.
create_dist
()
cmd
=
bdist_msi
(
dist
)
cmd
.
ensure_finalized
()
def
test_suite
():
return
unittest
.
makeSuite
(
BDistMSITestCase
)
if
__name__
==
'__main__'
:
test_support
.
run_unittest
(
test_suite
())
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