Skip to content

Commit

Permalink
🐛 Update meson.build - dont build requirements during bootstrap.
Browse files Browse the repository at this point in the history
Signed-off-by: Eden Rose, MSc <[email protected]>
  • Loading branch information
rjdbcm authored May 4, 2024
1 parent 2093427 commit 33468ef
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -159,22 +159,24 @@ replace_ruff_target_version = run_command(
run_command(python, ['-c', replace_ruff_target_version], check: true)
pip = find_program('pip', required: true, disabler: true)
pip_compile = find_program('pip-compile', required: true)
custom_target(
'requirements.txt',
input: root_files[3],
output: 'requirements.txt',
build_always_stale: true,
build_by_default: true,
command: [
'pip-compile',
'--allow-unsafe',
'--strip-extras',
'-q',
'--generate-hashes',
'-o', '@OUTPUT@',
'@INPUT@',
],
)
if not meson.is_subproject()
custom_target(
'requirements.txt',
input: root_files[3],
output: 'requirements.txt',
build_always_stale: true,
build_by_default: true,
command: [
'pip-compile',
'--allow-unsafe',
'--strip-extras',
'-q',
'--generate-hashes',
'-o', '@OUTPUT@',
'@INPUT@',
],
)
endif
source_to_build.enable_auto_if(source_to_build.auto())
docs_source = 'docs'
test_source = 'tests'
Expand Down

0 comments on commit 33468ef

Please sign in to comment.