<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=1409187" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/amessina">@amessina</a> - I see that you can get the version numbers via defines, for example header files for python 3.5.3 has the following defines:</p>
<pre><code>  #define PY_MAJOR_VERSION    3
  #define PY_MINOR_VERSION    5
  #define PY_MICRO_VERSION    3
</code></pre>
<p>So you can have:</p>
<pre><code>#if PY_MAJOR_VERSION >= 3 && PY_MINOR_VERSION >= 7
...
#endif 
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1748#issuecomment-446529168">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZUZFwCEgZ88tLshM4Oo_lfY1yx38ks5u4NL4gaJpZM4Y8-74">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZXAvBmDdAtgXzx-CzWMhEudM4pfzks5u4NL4gaJpZM4Y8-74.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@miconda in #1748: @amessina - I see that you can get the version numbers via defines, for example header files for python 3.5.3 has the following defines:\r\n\r\n```\r\n  #define PY_MAJOR_VERSION    3\r\n  #define PY_MINOR_VERSION    5\r\n  #define PY_MICRO_VERSION    3\r\n```\r\nSo you can have:\r\n\r\n```\r\n#if PY_MAJOR_VERSION \u003e= 3 \u0026\u0026 PY_MINOR_VERSION \u003e= 7\r\n...\r\n#endif \r\n```"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1748#issuecomment-446529168"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1748#issuecomment-446529168",
"url": "https://github.com/kamailio/kamailio/issues/1748#issuecomment-446529168",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>