24 # Start-of-Header |
24 # Start-of-Header |
25 name = "CxFreeze Plugin" |
25 name = "CxFreeze Plugin" |
26 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
26 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
27 autoactivate = True |
27 autoactivate = True |
28 deactivateable = True |
28 deactivateable = True |
29 version = "5.0.5" |
29 version = "5.0.6" |
30 className = "CxFreezePlugin" |
30 className = "CxFreezePlugin" |
31 packageName = "CxFreeze" |
31 packageName = "CxFreeze" |
32 shortDescription = "Show the CxFreeze dialogs." |
32 shortDescription = "Show the CxFreeze dialogs." |
33 longDescription = """This plugin implements the CxFreeze dialogs.""" \ |
33 longDescription = """This plugin implements the CxFreeze dialogs.""" \ |
34 """ CxFreeze is used to generate a distribution package.""" |
34 """ CxFreeze is used to generate a distribution package.""" |
58 } |
58 } |
59 |
59 |
60 exe = _findExecutable() |
60 exe = _findExecutable() |
61 if exe: |
61 if exe: |
62 data["exe"] = exe |
62 data["exe"] = exe |
63 if "FreezePython" in exe: |
63 data["versionStartsWith"] = "cxfreeze" |
64 data["versionStartsWith"] = "FreezePython" |
|
65 elif "cxfreeze" in exe: |
|
66 data["versionStartsWith"] = "cxfreeze" |
|
67 |
64 |
68 return data |
65 return data |
69 |
66 |
70 def _findExecutable(): |
67 def _findExecutable(): |
71 """ |
68 """ |
72 Restricted function to determine the name of the executable. |
69 Restricted function to determine the name of the executable. |
73 |
70 |
74 @return name of the executable (string) |
71 @return name of the executable (string) |
75 """ |
72 """ |
76 # step 1: check for version 4.x |
|
77 if Utilities.isWindowsPlatform(): |
73 if Utilities.isWindowsPlatform(): |
78 # |
74 # |
79 # Windows |
75 # Windows |
80 # |
76 # |
81 exe = 'cxfreeze.bat' |
77 exe = 'cxfreeze.bat' |
112 return exePath |
108 return exePath |
113 else: |
109 else: |
114 # |
110 # |
115 # Linux, Unix ... |
111 # Linux, Unix ... |
116 cxfreezeScript = 'cxfreeze' |
112 cxfreezeScript = 'cxfreeze' |
117 # There could be multiple pylint executables in the path |
113 # There could be multiple cxfreeze executables in the path |
118 # e.g. for different python variants |
114 # e.g. for different python variants |
119 path = Utilities.getEnvironmentEntry('PATH') |
115 path = Utilities.getEnvironmentEntry('PATH') |
120 # environment variable not defined |
116 # environment variable not defined |
121 if path is None: |
117 if path is None: |
122 return None |
118 return None |