Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit 301a314

Browse files
authored
Merge pull request #15 from asottile/rm_f
Only remove 'dist' if it exists
2 parents baa83b6 + 8682b03 commit 301a314

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setuptools_golang.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ def set_build_ext(dist, attr, value):
132132

133133
def build_manylinux_wheels(argv=None): # pragma: no cover
134134
assert os.path.exists('setup.py')
135-
shutil.rmtree('dist')
135+
if os.path.exists('dist'):
136+
shutil.rmtree('dist')
136137
os.makedirs('dist')
137138
_check_call(('python', 'setup.py', 'sdist'), cwd='.', env={})
138139
_check_call(

0 commit comments

Comments
 (0)