Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcfd5f78

Browse files
authored
MNT Remove built_with_meson logic (#31718)
1 parent09960fe commitcfd5f78

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
raiseAttributeError(f"Module 'sklearn' has no attribute '{name}'")
139139

140140

141-
_BUILT_WITH_MESON=False
142-
try:
143-
importsklearn._built_with_meson# noqa: F401
144-
145-
_BUILT_WITH_MESON=True
146-
exceptModuleNotFoundError:
147-
pass
148-
149-
150141
defsetup_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)

[8]ページ先頭

©2009-2025 Movatter.jp