Skip to content

Commit cfd5f78

Browse files
authored
MNT Remove built_with_meson logic (#31718)
1 parent 09960fe commit cfd5f78

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

sklearn/__init__.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,6 @@ def __getattr__(name):
138138
raise AttributeError(f"Module 'sklearn' has no attribute '{name}'")
139139

140140

141-
_BUILT_WITH_MESON = False
142-
try:
143-
import sklearn._built_with_meson # noqa: F401
144-
145-
_BUILT_WITH_MESON = True
146-
except ModuleNotFoundError:
147-
pass
148-
149-
150141
def setup_module(module):
151142
"""Fixture for the tests to assure globally controllable seeding of RNGs"""
152143

sklearn/meson.build

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -222,18 +222,6 @@ cython_gen_cpp = generator(cython_program,
222222
output : '@BASENAME@.cpp',
223223
)
224224

225-
# Write file in Meson build dir to be able to figure out from Python code
226-
# whether scikit-learn was built with Meson. Adapted from pandas
227-
# _version_meson.py.
228-
custom_target('write_built_with_meson_file',
229-
output: '_built_with_meson.py',
230-
command: [
231-
py, '-c', 'with open("sklearn/_built_with_meson.py", "w") as f: f.write("")'
232-
],
233-
install: true,
234-
install_dir: py.get_install_dir() / 'sklearn'
235-
)
236-
237225
extensions = ['_isotonic']
238226

239227
py.extension_module(

0 commit comments

Comments
 (0)