Skip to content

Commit ff989a1

Browse files
authored
Merge pull request #324 from vmarkovtsev/patch-1
Enforce the extension module in setup.py
2 parents 5271841 + d314ab9 commit ff989a1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkgsetup.go

+7
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ const (
1919
with open("README.md", "r") as fh:
2020
long_description = fh.read()
2121
22+
23+
class BinaryDistribution(setuptools.Distribution):
24+
def has_ext_modules(_):
25+
return True
26+
27+
2228
setuptools.setup(
2329
name="%[1]s%[2]s",
2430
version="%[3]s",
@@ -35,6 +41,7 @@ setuptools.setup(
3541
"Operating System :: OS Independent",
3642
],
3743
include_package_data=True,
44+
distclass=BinaryDistribution,
3845
)
3946
`
4047

0 commit comments

Comments
 (0)