Skip to content

Commit

Permalink
autopep8 -i src/sage_setup/autogen/meson/__init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Jan 16, 2024
1 parent 7059c98 commit fbb080b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/sage_setup/autogen/meson/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ def run(folder: Path, dry_run=False, force=False):
python_files = sorted(list(folder.glob('*.py')) + list(folder.glob('*.pxd')) + list(folder.glob('*.h')))
cython_files = sorted(list(folder.glob('*.pyx')))


if not python_files and not cython_files:
print(f'Error: {folder} does not contain any python or cython files')
return
Expand All @@ -43,7 +42,7 @@ def get_metadata(path: Path):
.replace('CBLAS_LIBRARIES', 'cblas')
.replace('ZLIB_LIBRARIES', 'zlib')
.replace('Lfunction', 'lfunction')
for library in libraries]
for library in libraries]
try:
libraries.remove('CYGWIN_SQLITE3_LIBS')
except ValueError:
Expand Down Expand Up @@ -147,7 +146,7 @@ def get_metadata(path: Path):
meson_build.write(f" dependencies: [py_dep{', ' if all_libraries else ''}{', '.join(all_libraries)}],\n")
meson_build.write(' )\n')
meson_build.write('endforeach\n')

if cython_cpp_files:
meson_build.write('\n')
meson_build.write('extension_data_cpp = {\n')
Expand Down Expand Up @@ -175,7 +174,7 @@ def get_metadata(path: Path):
continue
if not list(subdir.glob('*.py*')):
continue

if not list(subdir.glob('*.pyx')):
meson_build.write(f"install_subdir('{subdir.name}', install_dir: sage_install_dir / '{folder_rel_to_src.relative_to('sage')}')\n")
else:
Expand Down

0 comments on commit fbb080b

Please sign in to comment.