Commit d7810a90 authored by Benoit Pierre's avatar Benoit Pierre

wheel: silence info trace when writing `requires.txt`

parent 5eee6b4b
"""Wheels support.""" """Wheels support."""
from distutils.util import get_platform from distutils.util import get_platform
from distutils import log
import email import email
import itertools import itertools
import os import os
...@@ -162,11 +163,17 @@ class Wheel: ...@@ -162,11 +163,17 @@ class Wheel:
extras_require=extras_require, extras_require=extras_require,
), ),
) )
write_requirements( # Temporarily disable info traces.
setup_dist.get_command_obj('egg_info'), log_threshold = log._global_log.threshold
None, log.set_threshold(log.WARN)
os.path.join(egg_info, 'requires.txt'), try:
) write_requirements(
setup_dist.get_command_obj('egg_info'),
None,
os.path.join(egg_info, 'requires.txt'),
)
finally:
log.set_threshold(log_threshold)
@staticmethod @staticmethod
def _move_data_entries(destination_eggdir, dist_data): def _move_data_entries(destination_eggdir, dist_data):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment