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):
295
295
else :
296
296
extras_require ["gssapi" ] = ["pykerberos" ]
297
297
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 = {}
306
299
307
300
if "--no_ext" in sys .argv :
308
301
sys .argv .remove ("--no_ext" )
@@ -350,5 +343,11 @@ def build_extension(self, ext):
350
343
],
351
344
cmdclass = {"build_ext" : custom_build_ext , "doc" : doc , "test" : test },
352
345
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
+ },
353
352
** extra_opts
354
353
)
You can’t perform that action at this time.
0 commit comments