Skip to content
Discussion options

You must be logged in to vote

One final hurdle in that meson adds its own quoting around arguments with spaces in them (even if they are already quoted), but I think we have a winner:

cython_include_args = run_command(
  py,
  [
    '-c',
    '''
import sys
for p in sys.path:
    if p:
        print("--include-dir")
        print(p)
    '''.strip()
  ],
  check: true
).stdout().splitlines()

py.extension_module(
  ...,
  cython_args : cython_include_args
)

Thanks for the assist.

Replies: 3 comments 12 replies

Comment options

You must be logged in to vote
7 replies
@orlitzky
Comment options

@eli-schwartz
Comment options

@orlitzky
Comment options

@eli-schwartz
Comment options

@orlitzky
Comment options

Comment options

You must be logged in to vote
5 replies
@orlitzky
Comment options

@eli-schwartz
Comment options

@orlitzky
Comment options

@eli-schwartz
Comment options

@orlitzky
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by orlitzky
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants