8000 Fix for Windows · scikit-learn/scikit-learn@768399b · GitHub
[go: up one dir, main page]

Skip to content

Commit 768399b

Browse files
committed
Fix for Windows
1 parent 602d035 commit 768399b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/_build_utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def get_cython_source(filename):
4242
is_cpp_filename = filename.endswith('.cpp')
4343

4444
# files in src are .c and .cpp files that are not cython-generated
45-
if 'src/' in filename and (is_c_filename or is_cpp_filename):
45+
if ('src' + os.sep) in filename and (is_c_filename or is_cpp_filename):
4646
return filename
4747
elif is_c_filename:
4848
filename = filename[:-1]

0 commit comments

Comments
 (0)
0