Skip to content

Enabling feature flag from pip install? #1090

Answered by messense
gauteh asked this question in Q&A
Discussion options

You must be logged in to vote

You can set MATURIN_PEP517_ARGS env var, for example: MATURIN_PEP517_ARGS="--features static".

def get_maturin_pep517_args():
args = shlex.split(os.getenv("MATURIN_PEP517_ARGS", ""))
return args

pep517_args = get_maturin_pep517_args()
if pep517_args:
command.extend(pep517_args)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@gauteh
Comment options

@gauteh
Comment options

Answer selected by messense
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