tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
]\¬Qc@s¼dZddddgZddlmZeddd    ƒdd
lZdd
lZdd
lZdd
lZdd
lZdd
l    Z    dd
l
Z
dd l m Z dd
l Z dd lmZdd lmZdefd„ƒYZdfd„ƒYZdefd„ƒYZdZejƒZdejkZdZdZedeZd„ZdZ dddddddd d!d"d#d$d%d&gZ!d'Z"d(Z#d)Z$d*d+d,gZ%d-„Z&ej'j(ej)d.d/ej*d0 ƒZ+ej'j(e+d1ƒZ,defd2„ƒYZ-gej.ƒD]\Z/Z0Z1e/^q    Z2e
j3d3ƒZ4e5d4„Z6d5„Z7d6d7„Z d8„Z8d9„Z9d6d:„Z:d;„Z;d<Z<e5d=„Z=e5d>„Z>d?„Z?e@d@kr¸e>ƒnd
S(Asûbundlebuilder.py -- Tools to assemble MacOS X (application) bundles.
 
This module contains two classes to build so called "bundles" for
MacOS X. BundleBuilder is a general tool, AppBuilder is a subclass
specialized in building application bundles.
 
[Bundle|App]Builder objects are instantiated with a bunch of keyword
arguments, and have a build() method that will do all the work. See
the class doc strings for a description of the constructor arguments.
 
The module contains a main program that can be used in two ways:
 
  % python bundlebuilder.py [options] build
  % python buildapp.py [options] build
 
Where "buildapp.py" is a user-supplied setup.py-like script following
this model:
 
  from bundlebuilder import buildapp
  buildapp(<lots-of-keyword-args>)
 
t BundleBuildertBundleBuilderErrort
AppBuildertbuildappiÿÿÿÿ(twarnpy3ks,In 3.x, the bundlebuilder module is removed.t
stackleveliN(tdeepcopy(tPlist(t FunctionTypecBseZRS((t__name__t
__module__(((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyR+stDefaultscBs,eZdZd„Zd„ZeeƒZRS(s²Class attributes that don't start with an underscore and are
    not functions or classmethods are (deep)copied to self.__dict__.
    This allows for mutable default values.
    cKs-|jƒ}|j|ƒ|jj|ƒdS(N(t _getDefaultstupdatet__dict__(tselftkwargstdefaults((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyt__init__5s  cCsœi}x6|jD]+}t|dƒr|j|jƒƒqqWxV|jjƒD]E\}}|ddkrOt|ttfƒ rOt    |ƒ||<qOqOW|S(NR it_(
t    __bases__thasattrR R Rtitemst
isinstancetfunctiont classmethodR(tclsRtbasetnametvalue((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyR :s(R    R
t__doc__RR R(((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyR .s        
cBs°eZdZdZeddddƒZdZdZdZ    gZ
gZ gZ dZ dZdZd    Zd
„Zd „Zd „Zd „Zd„Zd„Zdd„Zd„ZRS(s·BundleBuilder is a barebones class for assembling bundles. It
    knows nothing about executables or icons, it only copies files
    and creates the PkgInfo and Info.plist files.
    tCFBundleDevelopmentRegiontEnglishtCFBundleInfoDictionaryVersions6.0tBNDLtbuildiitcCsïtjj|jƒ\|_}|s-d}n|}t|j|j|ƒ|_|j}|j|_|j    |_
|j dkr©t |dƒr|j|_ q©d|_ n|j |_|jrÍ|j|_nt |dƒsë|j|_ndS(Ns.bundletCFBundleSignatures????tCFBundleIdentifier(tostpathtsplitextRtpathjointbuilddirt
bundlepathtplistt CFBundleNamettypetCFBundlePackageTypetcreatortNoneRR%t    bundle_idR&(RtexttbundleextensionR-((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pytsetupxs"                cCs-|j}|r2tjj|ƒ r2tj|ƒn|jdt|jƒdƒtjj|jƒrwtj    |jƒntjj|jdƒr§tj    |jdƒn|j}|d|_zOtj|jƒ|j
ƒ|j ƒ|j ƒ|j ƒtj|j|ƒWd||_X|jddƒdS(sBuild the bundle.s Building %sit~NsDone.(R+R'R(texiststmkdirtmessagetreprR,tshutiltrmtreet
preProcesst
_copyFilest _addMetaFilest postProcesstrename(RR+tbp((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyR#s&         
 
 
 
 
cCsdS(sHook for subclasses.N((R((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyR>«scCsdS(sHook for subclasses.N((R((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyRA®scCs¸t|jdƒ}t|ƒt|jƒt|jƒkoEdknsVtdƒ‚t|dƒ}t|dƒ}|j|j|jƒ|j    ƒt|dƒ}|j
j|ƒdS(NtContentsis(type and creator must be 4-byte strings.tPkgInfotwbs
Info.plist( R*R,tmakedirstlenR/R1tAssertionErrortopentwritetcloseR-(Rtcontentstpkginfotft    infoplist((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyR@²s
1    
cCsx|j}x<|jD]1}|j|tddtjj|ƒƒfƒqWx<|jD]1}|j|tddtjj|ƒƒfƒqSW|jrª|j    ddƒd}n|j    ddƒd}|j
ƒx§|D]Ÿ\}}tjj |ƒr|j    d    |||fd
ƒn|j    d |||fd
ƒt|j |ƒ}|jr]t||d dƒqÑt ||d dƒqÑWdS( NRDt    Resourcest
FrameworkssMaking symbolic linksisMaking symlink froms Copying filestCopyings %s %s/ to %s/is %s %s to %stmkdirs(tfilest    resourcestappendR*R'R(tbasenametlibstsymlinkR:tsorttisdirR,tcopy(RRUR(tmsgtsrctdst((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyR?Âs*
        
     cCsQ||jkrMd}|dkr2|dd}ntjj||dƒndS(NR$is  s
(t    verbositytsyststderrRK(RR^tleveltindent((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyR:Üs
 cCsdS(N((R((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pytreportãsN(R    R
RR2RRR-R/R1R3RVRURYR+RZRatdestrootR6R#R>RAR@R?R:Rf(((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyRGs,                              s.pyct    zipimportsbimport sys
if not %(semi_standalone)s:
    del sys.path[1:]  # sys.path[0] is Contents/Resources/
s Modules.zips%sys.path.append(sys.path[0] + '/%s')
cCsG|r|d7}n|jdtjƒt}|tdtj|ƒfS(Ns    .__init__t.t(treplaceR'tseptPYC_EXTtMAGICtmarshaltdumps(tfullnametcodetispkgR(((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyt
getPycDataûs sdef __load():
    import imp, sys, os
    for p in sys.path:
        path = os.path.join(p, "%(filename)s")
        if os.path.exists(path):
            break
    else:
        assert 0, "file not found: %(filename)s"
    mod = imp.load_dynamic("%(name)s", path)
 
__load()
del __load
tos2tnttntpathtdostdospathtwin32apitcet_winregt
nturl2patht sitecustomizesorg.python.coretriscost riscosenviront
riscospaths/usr/bin/stripsE#!%(hashbang)s
 
import sys, os
execdir = os.path.dirname(sys.argv[0])
executable = os.path.join(execdir, "%(executable)s")
resdir = os.path.join(os.path.dirname(execdir), "Resources")
libdir = os.path.join(os.path.dirname(execdir), "Frameworks")
mainprogram = os.path.join(resdir, "%(mainprogram)s")
 
if %(optimize)s:
    sys.argv.insert(1, '-O')
 
sys.argv.insert(1, mainprogram)
if %(standalone)s or %(semi_standalone)s:
    os.environ["PYTHONPATH"] = resdir
    if %(standalone)s:
        os.environ["PYTHONHOME"] = resdir
else:
    pypath = os.getenv("PYTHONPATH", "")
    if pypath:
        pypath = ":" + pypath
    os.environ["PYTHONPATH"] = resdir + pypath
 
os.environ["PYTHONEXECUTABLE"] = executable
os.environ["DYLD_LIBRARY_PATH"] = libdir
os.environ["DYLD_FRAMEWORK_PATH"] = libdir
os.execve(executable, sys.argv, os.environ)
s‹import argvemulator, os
 
argvemulator.ArgvCollector().mainloop()
execfile(os.path.join(os.path.split(__file__)[0], "%(realmainprogram)s"))
tPythonsResources/English.lprojsResources/Info.plistcCstjjdƒdkS(NsPython.frameworki(Rbt exec_prefixtfind(((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyt isFrameworkZstlibtpythonis site-packagescBsÔeZeZdZdZd Zd Zd Z    d Z
dZ dZ dZ d ZdZgZgZgZdZgZgZgZd„Zd„Zd„Zd„Zd„Zd„Zd    „Zd
„Zd „Zd „Z RS(tAPPLtMacOSicCs|js|jr-|jdkr-td‚n|jdkrW|jdkrWtd‚ntd|jƒ|_|j    dk    r~nt|jdk    r¸t
j j t
j j |jƒƒd|_    n:|jdk    ròt
j j t
j j |jƒƒd|_    n|j    ddkr|j    d7_    n|jdkrm|j rFtƒ rFd|_n|jr^|j|_qmtj|_n|jr©|j|j_t|jdƒs©d    |j_q©n|jrÈtƒrÈ|jƒntj|ƒ|j    |j_|jsö|jr|jƒndS(
NsBmust specify 'mainprogram' when building a standalone application.s=must specify either or both of 'executable' and 'mainprogram'RDiiüÿÿÿs.appitNSPrincipalClasst NSApplication(t
standalonetsemi_standalonet mainprogramR2Rt
executableR*tplatformtexecdirRR'R(R)RXR…t symlink_execR‡RbtnibnameR-t NSMainNibFileRRŠtaddPythonFrameworkRR6tCFBundleExecutabletfindDependencies(R((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyR6¤s<  ++           cCsÙd}|jdk    r|jdkr0|j}ntjj|jƒ}t|j|ƒ}|j    sƒ|j
j |j |j|fƒn||_ n|jdk    r€tjj|jƒ}|j
j |jt||ƒfƒ|jr§|}d|}t|j|ƒ}t||ƒ}t|ƒt|dƒjttƒƒ|jsH|jrk|jj dƒ|jj dƒnd|jkr§iddd    gd
6d d 6g|jd<q§ntjj|jƒ}t|j|jƒ}    t|    |jƒ}
t|    ƒ|jsÿ|jrd } n*|jr|j} ntjjtjƒ} |j} |j} tjj}t|
dƒjttƒƒtj|
dƒn|j dk    rÕtjj|j ƒ}||j_!|j
j |j t||ƒfƒndS(NsContents/Resourcest__argvemulator_twt argvemulatorR'tCFBundleDocumentTypess****tfoldtdisktCFBundleTypeOSTypestViewertCFBundleTypeRoles/usr/bin/pythoniý("RR2RŽRR'R(RXR*R‘R’RURWRgtexecpathtargv_emulationR,RGRJRKt ARGV_EMULATORtlocalsRŒRtincludeModulesR-R‡trealpathRbtflagstoptimizetBOOTSTRAP_SCRIPTtchmodticonfiletCFBundleIconFile(RtresdirtexecnameR¡RŽtrealmainprogramt
resdirpathtmainprogrampathRR‘t bootstrappaththashbangRŒRR¨ticonbase((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyR>Ïs\     # "    
 
 
 
                   cCsá|js|jr|jƒn|jr?|j r?|jƒn|jr¾|jr¾|jd|j|j    fdƒt
|j |j    ƒ}t t jj|ƒƒt jt jj|jƒ|ƒn|jsÐ|jrÝ|jƒndS(NsSymlinking executable %s to %si(RŒRtaddPythonModuleststripRZt stripBinariesR’RR:R¡R*R,RGR'R(tdirnametabspathtmissingModulestmaybeMissingModulest reportMissing(RR`((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyRA s  "cCsÓx-|jD]"}tjj|ƒdkr
dSq
Wtjtjjdƒtdƒ }tjd }t    |d|ƒ}t    dddd|ƒ}xBt
D]:}t    ||ƒ}t    ||ƒ}|j j ||fƒq‘WdS(NsPython.frameworkitVersionsRDRR( RYR'R(RXRbRƒR„RHtversionR*tPYTHONFRAMEWORKGOODIESRURW(RR†t frameworkpathR¾tdestbasetitemR_R`((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyR•s    cCs+|jr'tti|jd6ddƒSdS(NRs<-bundlebuilder.py->texec(t use_zipimporttcompiletSITE_PYR(R((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyt _getSiteCode0s    c Csµ|jddƒ|jröddl}tddtƒ}t|j|ƒ}|j|d|jƒ}xV|jD]K\}}}|jd|dƒt    |||ƒ\}}    |j
||    ƒqkW|j ƒt|jddd    t ƒ}
t |jƒ|
ƒn»x¸|jD]­\}}}|r"|d
7}n|jd ƒ}tdd|Œt }|rd|jd |dƒn|jd|dƒt|j|ƒ}ttjj|ƒƒt ||ƒqWdS( NsAdding Python modulesiiÿÿÿÿRDRQR™sAdding Python module %sitsites    .__init__RisAdding Python package %s(R:RÄtzipfileR*t ZIP_ARCHIVER,tZipFilet ZIP_DEFLATEDt    pymodulesRttwritestrRLRmtwritePycRÇtsplitRGR'R(R¸( RRÉtrelpathR¹tzfRRrRsR(tpyctsitepath((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyRµ5s2     
  csktjjtƒs)ˆjdtdƒn>ddl‰ˆjddƒ‡‡‡fd†‰ˆˆjƒdS(Ns3Error: can't strip binaries: no strip program at %siiÿÿÿÿsStripping binariesicsxtj|ƒD]÷}t||ƒ}tjj|ƒr=qntjj|ƒr\ˆ|ƒqtj|ƒˆj}|d@s‚qn|tˆj    ƒ}ˆj
d|dƒtj dt |fƒ\}}|j ƒjƒ}|rˆj
d|dƒˆj
|dƒqqWdS(Ni@s Stripping %sis
%s -S "%s"sProblem stripping %s:i(R'tlistdirR*R(tislinkR\tstattST_MODERHR,R:tpopen4t
STRIP_EXECtreadR¶(ttopRR(tmodRÑtinftoutftoutput(RR×twalk(s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyRá_s" 
    (R'R(R8RÚR:R×R,(R((RR×Rás^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyR·Xs     c
Cs|jddƒddl}|jd|jƒ}|jrJ|jdƒn|jdƒ}|jƒ|_|j    |j|ƒ|jdƒ|j
}x*|j D]}|j t |ƒjƒƒqœWxC|D];}y|j|ƒWqÆtk
r|jj|ƒqÆXqÆW|j|jƒ|jjƒ}|jƒx}|D]u\}}|j}|r|jr|jtƒr|jtƒ rq5qn|rT|jdkrTtjj|ƒ}    |j dƒd |    g}
t!|
Œ} |jr/|dkrõt!d    | ƒ} nt"i|d
6| d 6} t#| d |d ƒ} | |_n|j$j|t!dd| ƒfƒn|jdk    r5|j%dk    }|j sˆ|dkrª|j&j||j|fƒqªq5q5Wt'|dƒrÒ|j(ƒ\}}n|j)ƒ}g}|jj |ƒ|j*j |ƒdS(NsFinding module dependenciesiiÿÿÿÿtexcludestzlibRÈtwarningsRitExtensionModulesRtfilenames<dynloader for %s>RÃRDRQtany_missing_maybe(+R:t modulefindert ModuleFindertexcludeModulesRÄt import_hookt
add_moduleRÇt__code__t    scan_codeR¥tincludePackagestextendtfindPackageContentstkeyst ImportErrorRºRWt
run_scriptRŽtmodulesRR[t__file__Rt
startswithtLIBt SITE_PACKAGESR2R'R(RXRÐR*t
EXT_LOADERRÅRUt__path__RÍRRçt any_missingR»(RRètmfRÈR¥RRõRÝR(Ræt    pathitemstdstpathtsourceRrRstmissingtmaybe((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyR—vs\      
 
               %& cCsKg|jD]}|tkr
|^q
}|jr=|j}nJg|D]}d|krD|^qD}g|D]}d|kri|^qi}|jƒ|jƒ|r    |jddƒ|jddƒ|jddƒ|jddƒx%|D]}|jd|dƒqèWn|rG|jddƒx%|D]}|jd|dƒq&WndS(    NRis0Warning: couldn't find the following submodules:is=    (Note that these could be false alarms -- it's not alwayssD    possible to distinguish between "from package import submodule" s#    and "from package import name")s  ? s-Warning: couldn't find the following modules:(RºtMAYMISS_MODULESR»R[R:(RRRR((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyR¼·s*     %%
 
          cCs?ddl}|j|jƒ|js.|jr;|jƒndS(Niÿÿÿÿ(tpprintRRŒRR¼(RR((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyRfÏs N(!R    R
t USE_ZIPIMPORTRÄR/RR2RŽRR“R«R’RŒRR‡R¢RêR¥RïR¶RÍRºR»R6R>RAR•RÇRµR·R—R¼Rf(((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyRbs:    +    <                #        A    s[_a-zA-z][_a-zA-Z0-9]*$c Cs |jdƒd}tj|ƒdkr,iSy(tj||ƒ\}}\}}}Wntk
rhiSXid|6}|tjkr|rtj    |ƒ}    xk|    D]`}
tj
j |
ƒ\}
}|d|
} |
dkr¡| |kr¡|j t | |gƒƒq¡q¡Wn|S(NRiiÿÿÿÿR(RÐt identifierREtmatchR2timpt find_moduleRót PKG_DIRECTORYR'RÕR(R)R Rñ( Rt
searchpaththeadtfpR(R4tmodettpRõRUtsubRq((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyRñÝs (   #cCsGt|dƒ}|jtƒ|jdƒtj||ƒ|jƒdS(NRFtiRj(RJRKRnRotdumpRL(RrR(RO((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyRÏïs
  icCs^|rttjj|ƒƒntjj|ƒrJtj||ddƒntj||ƒdS(sCopy a file or a directory.tsymlinksiN(RGR'R(R¸R\R<tcopytreetcopy2(R_R`RT((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyR]ös
cCs,t|tjj|ƒƒ}t||ƒdS(s4Copy a file or a directory to an existing directory.N(R*R'R(RXR](R_tdstdirR`((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyt    copytodirÿscCsCytj|ƒWn+tk
r>}|jtjkr?‚q?nXdS(syMake all directories leading up to 'dir' including the leaf
    directory. Don't moan if any path element already exists.N(R'RGtOSErrorterrnotEEXIST(tdirtwhy((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyRGs
cCsatjj|ƒs"td|‚n|rAttjj|ƒƒntjtjj|ƒ|ƒdS(sCopy a file or a directory.sNo such file or directory: '%s'N(R'R(R8tIOErrorRGR¸RZR¹(R_R`RT((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyRZ s
cGs;x(|dD]}|ddks t‚q Wtjj|ŒS(s^Safe wrapper for os.path.join: asserts that all but the first
    argument are relative paths.iit/(RIR'R(tjoin(targstseg((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyR*ssÙUsage:
  python bundlebuilder.py [options] command
  python mybuildscript.py [options] command
 
Commands:
  build      build the application
  report     print a report
 
Options:
  -b, --builddir=DIR     the build directory; defaults to "build"
  -n, --name=NAME        application name
  -r, --resource=FILE    extra file or folder to be copied to Resources
  -f, --file=SRC:DST     extra file or folder to be copied into the bundle;
                         DST must be a path relative to the bundle root
  -e, --executable=FILE  the executable to be used
  -m, --mainprogram=FILE the Python main program
  -a, --argv             add a wrapper main program to create sys.argv
  -p, --plist=FILE       .plist file (default: generate one)
      --nib=NAME         main nib name
  -c, --creator=CCCC     4-char creator code (default: '????')
      --iconfile=FILE    filename of the icon (an .icns file) to be used
                         as the Finder icon
      --bundle-id=ID     the CFBundleIdentifier, in reverse-dns format
                         (eg. org.python.BuildApplet; this is used for
                         the preferences file name)
  -l, --link             symlink files/folder instead of copying them
      --link-exec        symlink the executable instead of copying it
      --standalone       build a standalone application, which is fully
                         independent of a Python installation
      --semi-standalone  build a standalone application, which depends on
                         an installed Python, yet includes all third-party
                         modules.
      --no-zipimport     Do not copy code into a zip file
      --python=FILE      Python to use in #! line in stead of current Python
      --lib=FILE         shared library or framework to be copied into
                         the bundle
  -x, --exclude=MODULE   exclude module (with --(semi-)standalone)
  -i, --include=MODULE   include module (with --(semi-)standalone)
      --package=PACKAGE  include a whole package (with --(semi-)standalone)
      --strip            strip binaries (remove debug info)
  -v, --verbose          increase verbosity level
  -q, --quiet            decrease verbosity level
  -h, --help             print this message
cCs$|r|GHntGHtjdƒdS(Ni(t cmdline_docRbtexit(R^((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pytusageKsc    Cs'|dkrtddƒ}nd}dP}y&tjtjd||ƒ\}}Wntjk
rmtƒnXx|D]\}}|dQkr™||_qu|dRkr±||_qu|dSkrÜ|j    j
t j j |ƒƒqu|dTkr)|jd&ƒ}t|ƒd'krtd(ƒn|jj
|ƒqu|dUkrA||_qu|dVkrY||_qu|dWkrqd|_qu|dXkr‰||_qu|d1kr¡||_qu|d2kr¹||_qu|d3krä|jj
t j j |ƒƒqu|d4krü||_qu|dYkrtj|ƒ|_qu|dZkr5d|_qu|d9krMd|_qu|d[krctƒqu|d\kr|jd7_qu|d]krŸ|jd8_qu|d@kr·d|_qu|dAkrÏd|_ qu|dBkrç||_!qu|d^kr|j"j
|ƒqu|d_kr%|j#j
|ƒqu|dGkrD|j$j
|ƒqu|dHkr\d|_%qu|dIkrt||_&qu|dJkrut'|_(ququWt|ƒdkr¯tdKƒn|dL}|dMkrÜ|j)ƒ|j*ƒnG|dNkrÿ|j)ƒ|j+ƒn$|dkrtƒntdO|ƒdS(`NRaisb:n:r:f:e:m:c:p:lx:i:hvqas    builddir=sname=s    resource=sfile=s executable=s mainprogram=screator=snib=splist=tlinks    link-execthelptverbosetquiettargvRŒsexclude=sinclude=spackage=R¶s    iconfile=slib=spython=ssemi-standalones
bundle-id=sdestroot=no-zipimports-bs
--builddirs-ns--names-rs
--resources-fs--filet:is=-f or --file argument must be two paths, separated by a colons-es --executables-ms --mainprograms-as--argvs-cs    --creators --bundle-ids
--iconfiles--libs--nibs-ps--plists-ls--links --link-execs-hs--helps-vs    --verboses-qs--quiets --standalones--semi-standalones--pythons-xs    --excludes-is    --includes    --packages--strips
--destroots--no-zipimports6Must specify one command ('build', 'report' or 'help')iR#RfsUnknown command '%s'(s    builddir=sname=s    resource=sfile=s executable=s mainprogram=screator=snib=splist=slinks    link-execshelpsverbosesquietsargvs
standalonesexclude=sinclude=spackage=sstrips    iconfile=slib=spython=ssemi-standalones
bundle-id=sdestroot=no-zipimport(s-bs
--builddir(s-ns--name(s-rs
--resource(s-fs--file(s-es --executable(s-ms --mainprogram(s-as--argv(s-cs    --creator(s-ps--plist(s-ls--link(s-hs--help(s-vs    --verbose(s-qs--quiet(s-xs    --exclude(s-is    --include(,R2RtgetoptRbR)terrorR$R+RRVRWR'R(tnormpathRÐRHRURRŽR¢R1R3R«RYR“RtfromFileR-RZR’RaRŒRR‡RêR¥RïR¶RgtFalseRÄR6R#Rf(    tbuildert    shortoptstlongoptstoptionsR topttargtsrcdsttcommand((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pytmainQs¤ &                             
 
 
 
 
cKst|}t|ƒdS(N(RR8(RR0((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyR¯s t__main__(ARt__all__RäRRbR'RR<RRotreR]RR+tplistlibRttypesRRt    ExceptionRR RRmt    get_magicRntbuiltin_module_namesRRÆRÊt SITE_PY_ZIPRtRúRRÚR©R£R¿R…R(RtprefixR¾RøRùRt get_suffixest_suft_modet_tptSUFFIXESRÅRR2RñRÏRRGRZR*R"R$R8RR    (((s^/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/plat-mac/bundlebuilder.pyt<module>sf $  ¢     )         &ÿy(                          4  ^