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
5f79419c
Commit
5f79419c
authored
Jan 29, 2009
by
Tarek Ziadé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed test_make_distribution so it runs on any platform, as long as tar an gzip are available
parent
8e32f7ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
tests/test_sdist.py
tests/test_sdist.py
+6
-9
No files found.
tests/test_sdist.py
View file @
5f79419c
...
...
@@ -10,7 +10,7 @@ from distutils.command.sdist import sdist
from
distutils.core
import
Distribution
from
distutils.tests.test_config
import
PyPIRCCommandTestCase
from
distutils.errors
import
DistutilsExecError
from
distutils.spawn
import
spawn
from
distutils.spawn
import
find_executable
CURDIR
=
os
.
path
.
dirname
(
__file__
)
TEMP_PKG
=
join
(
CURDIR
,
'temppkg'
)
...
...
@@ -111,15 +111,12 @@ class sdistTestCase(PyPIRCCommandTestCase):
def
test_make_distribution
(
self
):
self
.
_init_tmp_pkg
()
# check if tar and gzip are installed
if
(
find_executable
(
'tar'
)
is
None
or
find_executable
(
'gzip'
)
is
None
):
return
# check if tar is installed under win32
if
sys
.
platform
==
'win32'
:
try
:
spawn
(
'tar --help'
)
except
DistutilsExecError
:
# let's return, no need to go further
return
self
.
_init_tmp_pkg
()
# now building a sdist
dist
=
Distribution
()
...
...
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