Skip to content

Commit e771303

Browse files
author
David Noble
committed
Setup.py fix for Windows
1 parent d47a452 commit e771303

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def run_test_suite():
3737
unittest.TextTestRunner().run(suite)
3838
os.chdir(original_cwd)
3939

40+
4041
def run_test_suite_with_junit_output():
4142
try:
4243
import unittest2 as unittest
@@ -49,6 +50,7 @@ def run_test_suite_with_junit_output():
4950
xmlrunner.XMLTestRunner(output='../test-reports').run(suite)
5051
os.chdir(original_cwd)
5152

53+
5254
class CoverageCommand(Command):
5355
"""setup.py command to run code coverage of the test suite."""
5456
description = "Create an HTML coverage report from running the full test suite."
@@ -87,6 +89,7 @@ def finalize_options(self):
8789
def run(self):
8890
run_test_suite()
8991

92+
9093
class JunitXmlTestCommand(Command):
9194
"""setup.py command to run the whole test suite."""
9295
description = "Run test full test suite with JUnit-formatted output."
@@ -170,7 +173,7 @@ def run(self):
170173

171174
setup_py = os.path.join('examples', 'searchcommands_app', 'setup.py')
172175

173-
check_call((setup_py, 'build', '--force'), stderr=STDOUT, stdout=sys.stdout)
176+
check_call(('python', setup_py, 'build', '--force'), stderr=STDOUT, stdout=sys.stdout)
174177
tarball = 'searchcommands_app-{0}-private.tar.gz'.format(self.distribution.metadata.version)
175178
source = os.path.join('examples', 'searchcommands_app', 'build', tarball)
176179
target = os.path.join('build', tarball)

0 commit comments

Comments
 (0)