Skip to content

Commit 03e0936

Browse files
committed
Don't add a setup.cfg to the tarball
1 parent bbb7022 commit 03e0936

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

setup.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@
3636
except ImportError:
3737
from distutils.core import setup
3838

39+
# The setuptools version of sdist adds a setup.cfg file to the tree.
40+
# We don't want that, so we simply remove it, and it will fall back to
41+
# vanilla distutils.
42+
try:
43+
from setuptools.command import sdist
44+
except ImportError:
45+
pass
46+
else:
47+
del sdist.sdist.make_release_tree
48+
3949
import setupext
4050
from setupext import print_line, print_raw, print_message, print_status
4151

@@ -228,5 +238,4 @@
228238
# Telling setuptools this prevents it from doing an automatic
229239
# check for zip safety.
230240
zip_safe=False,
231-
232241
)

0 commit comments

Comments
 (0)