File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 6
6
import os .path
7
7
import re
8
8
import sys
9
+ import warnings
10
+
9
11
from collections import defaultdict
10
12
from distutils .command .build_scripts import build_scripts as BuildScripts
11
13
from distutils .command .sdist import sdist as SDist
@@ -291,7 +293,17 @@ def get_dynamic_setup_params():
291
293
def main ():
292
294
"""Invoke installation process using setuptools."""
293
295
setup_params = dict (static_setup_params , ** get_dynamic_setup_params ())
296
+ ignore_warning_regex = (
297
+ r"Unknown distribution option: '(project_urls|python_requires)'"
298
+ )
299
+ warnings .filterwarnings (
300
+ 'ignore' ,
301
+ message = ignore_warning_regex ,
302
+ category = UserWarning ,
303
+ module = 'distutils.dist' ,
304
+ )
294
305
setup (** setup_params )
306
+ warnings .resetwarnings ()
295
307
296
308
297
309
if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments