Skip to content

Commit fb38be0

Browse files
authored
[BUILD] Filter Package .* is absent from the packages configuration warning (#4198)
Seems safe to ignore Signed-off-by: Anatoly Myachev <[email protected]>
1 parent e07bc13 commit fb38be0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

setup.py

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from distutils.command.clean import clean
1616
from pathlib import Path
1717
from typing import Optional
18+
import warnings
1819

1920
from setuptools import Extension, find_packages, setup
2021
from setuptools.command.build_ext import build_ext
@@ -41,6 +42,9 @@ class editable_wheel:
4142
pass
4243

4344

45+
# Too noisy: https://github.com/pypa/setuptools/blob/b74789e2aa3227e85d61b40708959b35d7f666cc/setuptools/command/build_py.py#L343
46+
warnings.filterwarnings("ignore", message="Package .* is absent from the `packages` configuration")
47+
4448
sys.path.insert(0, os.path.dirname(__file__))
4549

4650
from python.build_helpers import get_base_dir, get_cmake_dir

0 commit comments

Comments
 (0)