File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -295,14 +295,7 @@ def build_extension(self, ext):
295295else :
296296 extras_require ["gssapi" ] = ["pykerberos" ]
297297
298- extra_opts = {
299- "packages" : ["bson" , "pymongo" , "gridfs" ],
300- "package_data" : {
301- "bson" : ["py.typed" ],
302- "pymongo" : ["py.typed" ],
303- "gridfs" : ["py.typed" ],
304- },
305- }
298+ extra_opts = {}
306299
307300if "--no_ext" in sys .argv :
308301 sys .argv .remove ("--no_ext" )
@@ -350,5 +343,11 @@ def build_extension(self, ext):
350343 ],
351344 cmdclass = {"build_ext" : custom_build_ext , "doc" : doc , "test" : test },
352345 extras_require = extras_require ,
346+ packages = ["bson" , "pymongo" , "gridfs" ],
347+ package_data = {
348+ "bson" : ["py.typed" , "*.pyi" ],
349+ "pymongo" : ["py.typed" , "*.pyi" ],
350+ "gridfs" : ["py.typed" , "*.pyi" ],
351+ },
353352 ** extra_opts
354353)
You can’t perform that action at this time.
0 commit comments