Skip to content

Environment markers that match specific type of machines (pattern-matching) #871

Answered by kratsg
kratsg asked this question in Q&A
Discussion options

You must be logged in to vote

A possible solution is through the following:

>>> from packaging.markers import Marker
>>> Marker("'el7.x86_64' in platform_release").evaluate()
True

so checking if this is valid.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@kratsg
Comment options

@kratsg
Comment options

@kratsg
Comment options

Answer selected by kratsg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant