6Imports all utility features provided by and for 3rd party packages.
8@note: PyXMake plug-in manager
12----------------------------------------------------------------------------------------------
19@author: garb_ma [DLR-FA,STM Braunschweig]
20----------------------------------------------------------------------------------------------
38 from .__poetry
import build
as build
39 from .__poetry
import Plugin
as RuntimePlugin
40 from .__poetry
import ApplicationPlugin
as ApplicationPlugin
44 from .__build
import build
as bdist_wheel
45 from .__gitlab
import check
as check
50 with warnings.catch_warnings():
51 warnings.simplefilter(
"ignore")
52 if check(): signal.signal(signal.SIGINT,
lambda *args: sys.exit(0))
53 if check(): signal.signal(signal.SIGTERM,
lambda *args: sys.exit(0))
56except ImportError:
pass
60if os.getenv(
"pyx_recursion_limit",
""): sys.setrecursionlimit(int(os.getenv(
"pyx_recursion_limit",5000)))
64 This is the main entry point. Acts as a compatibility shim for poetry.
67 try:
from poetry.console.application
import main
68 except ImportError:
from poetry.console
import main
69 from packaging
import version
71 if sys.argv[1]
in [
"debug"]:
73 print(
'==================================')
74 print(
'Running poetry with PyXMake plugin')
75 print(
'==================================')
77 if sys.argv[1]
in [
"build"]
and version.parse(
".".join([str(x)
for x
in sys.version_info[:2]])) < version.parse(
"3.7"): build()
81if __name__ ==
'__main__':
main()
Provide a custom error handler for the interruption event triggered by this wrapper to prevent multip...