Skip to content

Commit 839a5ef

Browse files
committed
setup.py: drop unnecessary sdist override
The cython extensions appear to be generated automatically by setuptools nowadays so we don't have to force their creation manually.
1 parent 8e518fa commit 839a5ef

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

setup.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
from setuptools import setup
66
from setuptools.command import build_ext as dst_build_ext
7-
from setuptools.command import sdist as dst_sdist
87
from setuptools.extension import Extension
98

109
MODULEDIR = 'src/pkgcraft'
@@ -89,22 +88,6 @@ def extensions(**build_opts):
8988
return exts
9089

9190

92-
class sdist(dst_sdist.sdist):
93-
"""sdist command wrapper to bundle generated files for release."""
94-
95-
def run(self):
96-
# generate cython extensions
97-
if CYTHON_EXTS:
98-
from Cython.Build import cythonize
99-
cythonize(
100-
CYTHON_EXTS,
101-
compiler_directives=compiler_directives,
102-
annotate=False,
103-
)
104-
105-
super().run()
106-
107-
10891
class build_ext(dst_build_ext.build_ext):
10992
"""Enable building cython extensions with coverage support."""
11093

@@ -175,6 +158,5 @@ def run(self):
175158
ext_modules=extensions(),
176159
cmdclass={
177160
'build_ext': build_ext,
178-
'sdist': sdist,
179161
},
180162
)

0 commit comments

Comments
 (0)