mirror of https://github.com/pypa/pip
nox: Remove pre-existing source distributions
This commit is contained in:
parent
d38cead031
commit
3dfa9e420f
|
@ -87,6 +87,8 @@ def test(session):
|
|||
|
||||
# Build source distribution
|
||||
sdist_dir = os.path.join(session.virtualenv.location, "sdist")
|
||||
if os.path.exists(sdist_dir):
|
||||
shutil.rmtree(sdist_dir, ignore_errors=True)
|
||||
session.run(
|
||||
"python", "setup.py", "sdist",
|
||||
"--formats=zip", "--dist-dir", sdist_dir,
|
||||
|
|
Loading…
Reference in New Issue