forked from zsh-users/zsh-completions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_setup.py
703 lines (666 loc) · 35.2 KB
/
_setup.py
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
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
#compdef setup.py
# ------------------------------------------------------------------------------
# Description
# -----------
#
# Completion script for setup.py (http://docs.python.org/distutils/).
#
# ------------------------------------------------------------------------------
# Authors
# -------
#
# * Hideo Hattori (https://github.com/hhatto)
#
# ------------------------------------------------------------------------------
# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
# vim: ft=zsh sw=2 ts=2 et
# ------------------------------------------------------------------------------
_setup.py() {
typeset -A opt_args
local context state line
_arguments -s -S \
"--verbose[run verbosely (default)]" \
"-v[run verbosely (default)]" \
"--quiet[run quietly (turns verbosity off)]" \
"-q[run quietly (turns verbosity off)]" \
"--dry-run[don't actually do anything]" \
"-n[don't actually do anything]" \
"--help[show detailed help message]" \
"-h[show detailed help message]" \
"--no-user-cfg[ignore pydistutils.cfg in your home directory]" \
"--command-packages=[list of packages that provide distutils commands]" \
"--help-commands[list all available commands]" \
"--name[print package name]" \
"--version[print package version]" \
"-V[print package version]" \
"--fullname[print <package name>-<version>]" \
"--author[print the author's name]" \
"--author-email[print the author's email address]" \
"--maintainer[print the maintainer's name]" \
"--maintainer-email[print the maintainer's email address]" \
"--contact[print the maintainer's name if known, else the author's]" \
"--contact-email[print the maintainer's email address if known, else the author's]" \
"--url[print the URL for this package]" \
"--license[print the license of the package]" \
"--licence[alias for --license]" \
"--description[print the package description]" \
"--long-description[print the long package description]" \
"--platforms[print the list of platforms]" \
"--classifiers[print the list of classifiers]" \
"--keywords[print the list of keywords]" \
"--provides[print the list of packages/modules provided]" \
"--requires[print the list of packages/modules required]" \
"--obsoletes[print the list of packages/modules made obsolete]" \
"*::setup.py commands:_setuppy_command"
}
(( $+functions[_setuppy_command] )) ||
_setuppy_command() {
local cmd ret=1
(( $+setuppy_cmds )) || _setuppy_cmds=(
"build:build everything needed to install" \
"build_py:\"build\" pure Python modules (copy to build directory)" \
"build_ext:build C/C++ extensions (compile/link to build directory)" \
"build_clib:build C/C++ libraries used by Python extensions" \
"build_scripts:\"build\" scripts (copy and fixup #! line)" \
"clean:clean up temporary files from 'build' command" \
"install:install everything from build directory" \
"install_lib:install all Python modules (extensions and pure Python)" \
"install_headers:install C/C++ header files" \
"install_scripts:install scripts (Python or otherwise)" \
"install_data:install data files" \
"sdist:create a source distribution (tarball, zip file, etc.)" \
"register:register the distribution with the Python package index" \
"bdist:create a built (binary) distribution" \
"bdist_dumb:create a \"dumb\" built distribution" \
"bdist_rpm:create an RPM distribution" \
"bdist_wininst:create an executable installer for MS Windows" \
"upload:upload binary package to PyPI" \
"check:perform some checks on the package" \
"alias:define a shortcut to invoke one or more commands" \
"bdist_egg:create an \"egg\" distribution" \
"develop:install package in 'development mode'" \
"easy_install:Find/get/install Python packages" \
"egg_info:create a distribution's .egg-info directory" \
"rotate:delete older distributions, keeping N newest files" \
"saveopts:save supplied options to setup.cfg or other config file" \
"setopt:set an option in setup.cfg or another config file" \
"test:run unit tests after in-place build" \
"install_egg_info:Install an .egg-info directory for the package" \
"upload_docs:Upload documentation to PyPI" \
)
if (( CURRENT == 1 )); then
_describe -t commands 'setup.py subcommand' _setuppy_cmds || compadd "$@" - ${(s.:.)${(j.:.)_setuppy_syns}}
else
local curcontext="$curcontext"
cmd="${${_setuppy_cmds[(r)$words[1]:*]%%:*}:-${(k)_setuppy_syns[(r)(*:|)$words[1](:*|)]}}"
if (( $#cmd )); then
curcontext="${curcontext%:*:*}:setuppy-${cmd}:"
_call_function ret _setuppy_$cmd || _message 'no more arguments'
else
_message "unknown setup.py command: $words[1]"
fi
return ret
fi
}
(( $+functions[_setuppy_build] )) ||
_setuppy_build() {
_arguments -s \
"--build-base=[base directory for build library]" \
"-b[base directory for build library]" \
"--build-purelib=[build directory for platform-neutral distributions]" \
"--build-platlib=[build directory for platform-specific distributions]" \
"--build-lib=[build directory for all distribution (defaults to either build-purelib or build-platlib]" \
"--build-scripts=[build directory for scripts]" \
"--build-temp=[temporary build directory]" \
"-t[temporary build directory]" \
"--plat-name=[platform name to build for, if supported (default: linux-i686)]" \
"-p[platform name to build for, if supported (default: linux-i686)]" \
"--compiler=[specify the compiler type]" \
"-c[specify the compiler type]" \
"--debug[compile extensions and libraries with debugging information]" \
"-g[compile extensions and libraries with debugging information]" \
"--force[forcibly build everything (ignore file timestamps)]" \
"-f[forcibly build everything (ignore file timestamps)]" \
"--executable=[specify final destination interpreter path (build.py)]" \
"-e[specify final destination interpreter path (build.py)]" \
"*::setup.py commands:_setuppy"
}
(( $+functions[_setuppy_build_py] )) ||
_setuppy_build_py() {
_arguments -s \
"--build-lib=[directory to \"build\" (copy) to]" \
"-d[directory to \"build\" (copy) to]" \
"--compile[compile .py to .pyc]" \
"-c[compile .py to .pyc]" \
"--no-compile[don't compile .py files \[default\]]" \
"--optimize=[also compile with optimization: -O1 for \"python -O\", -O2 for \"python -OO\", and -O0 to disable \[default: -O0\]]" \
"-O[also compile with optimization: -O1 for \"python -O\", -O2 for \"python -OO\", and -O0 to disable \[default: -O0\]]" \
"--force[forcibly build everything (ignore file timestamps)]" \
"-f[forcibly build everything (ignore file timestamps)]" \
"*::setup.py commands:_setuppy"
}
(( $+functions[_setuppy_build_ext] )) ||
_setuppy_build_ext() {
_arguments -s \
"--build-lib=[directory for compiled extension modules]" \
"-b[directory for compiled extension modules]" \
"--build-temp=[directory for temporary files (build by-products)]" \
"-t[directory for temporary files (build by-products)]" \
"--plat-name=[platform name to cross-compile for, if supported (default: linux-i686)]" \
"-p[platform name to cross-compile for, if supported (default: linux-i686)]" \
"--inplace[ignore build-lib and put compiled extensions into the source directory alongside your pure Python modules]" \
"-i[ignore build-lib and put compiled extensions into the source directory alongside your pure Python modules]" \
"--include-dirs=[list of directories to search for header files (separated by ':')]" \
"-I[list of directories to search for header files (separated by ':')]" \
"--define=[C preprocessor macros to define]" \
"-D[C preprocessor macros to define]" \
"--undef=[C preprocessor macros to undefine]" \
"-U[C preprocessor macros to undefine]" \
"--libraries=[external C libraries to link with]" \
"-l[external C libraries to link with]" \
"--library-dirs=[directories to search for external C libraries (separated by ':')]" \
"-L[directories to search for external C libraries (separated by ':')]" \
"--rpath=[directories to search for shared C libraries at runtime]" \
"-R[directories to search for shared C libraries at runtime]" \
"--link-objects=[extra explicit link objects to include in the link]" \
"-O[extra explicit link objects to include in the link]" \
"--debug[compile/link with debugging information]" \
"-g[compile/link with debugging information]" \
"--force[forcibly build everything (ignore file timestamps)]" \
"-f[forcibly build everything (ignore file timestamps)]" \
"--compiler=[specify the compiler type]" \
"-c[specify the compiler type]" \
"--swig-cpp[make SWIG create C++ files (default is C)]" \
"--swig-opts=[list of SWIG command line options]" \
"--swig=[path to the SWIG executable]" \
"--user[add user include, library and rpath]" \
"*::setup.py commands:_setuppy"
}
(( $+functions[_setuppy_build_clib] )) ||
_setuppy_build_clib() {
_arguments -s \
"--build-clib=[directory to build C/C++ libraries to]" \
"-b[directory to build C/C++ libraries to]" \
"--build-temp=[directory to put temporary build by-products]" \
"-t[directory to put temporary build by-products]" \
"--debug[compile with debugging information]" \
"-g[compile with debugging information]" \
"--force[forcibly build everything (ignore file timestamps)]" \
"-f[forcibly build everything (ignore file timestamps)]" \
"--compiler=[specify the compiler type]" \
"-c[specify the compiler type]" \
"*::setup.py commands:_setuppy"
}
(( $+functions[_setuppy_build_scripts] )) ||
_setuppy_build_scripts() {
_arguments -s \
"--build-dir=[directory to \"build\" (copy) to]" \
"-d[directory to \"build\" (copy) to]" \
"--force[forcibly build everything (ignore file timestamps]" \
"-f[forcibly build everything (ignore file timestamps]" \
"--executable=[specify final destination interpreter path]" \
"-e[specify final destination interpreter path]" \
"*::setup.py commands:_setuppy"
}
(( $+functions[_setuppy_clean] )) ||
_setuppy_clean() {
_arguments -s \
"--build-base=[base build directory (default: 'build.build-base')]" \
"-b[base build directory (default: 'build.build-base')]" \
"--build-lib=[build directory for all modules (default: 'build.build-lib')]" \
"--build-temp=[temporary build directory (default: 'build.build-temp')]" \
"-t[temporary build directory (default: 'build.build-temp')]" \
"--build-scripts=[build directory for scripts (default: 'build.build-scripts')]" \
"--bdist-base=[temporary directory for built distributions]" \
"--all[remove all build output, not just temporary by-products]" \
"-a[remove all build output, not just temporary by-products]" \
"*::setup.py commands:_setuppy"
}
(( $+functions[_setuppy_install] )) ||
_setuppy_install() {
_arguments -s \
"--prefix=[installation prefix]" \
"--exec-prefix=[(Unix only) prefix for platform-specific files]" \
"--home=[(Unix only) home directory to install under]" \
"--user[install in user site-package '/home/hattori/.local/lib/python2.7/site-packages']" \
"--install-base=[base installation directory (instead of --prefix or --home)]" \
"--install-platbase=[base installation directory for platform-specific files (instead of --exec-prefix or --home)]" \
"--root=[install everything relative to this alternate root directory]" \
"--install-purelib=[installation directory for pure Python module distributions]" \
"--install-platlib=[installation directory for non-pure module distributions]" \
"--install-lib=[installation directory for all module distributions (overrides --install-purelib and --install-platlib)]" \
"--install-headers=[installation directory for C/C++ headers]" \
"--install-scripts=[installation directory for Python scripts]" \
"--install-data=[installation directory for data files]" \
"--compile[compile .py to .pyc \[default\]]" \
"-c[compile .py to .pyc \[default\]]" \
"--no-compile[don't compile .py files]" \
"--optimize=[also compile with optimization: -O1 for \"python -O\", -O2 for \"python -OO\", and -O0 to disable \[default: -O0\]]" \
"-O[also compile with optimization: -O1 for \"python -O\", -O2 for \"python -OO\", and -O0 to disable \[default: -O0\]]" \
"--force[force installation (overwrite any existing files)]" \
"-f[force installation (overwrite any existing files)]" \
"--skip-build[skip rebuilding everything (for testing/debugging)]" \
"--record=[filename in which to record list of installed files]" \
"--install-layout=[installation layout to choose (known values: deb, unix)]" \
"--old-and-unmanageable[Try not to use this!]" \
"--single-version-externally-managed[used by system package builders to create 'flat' eggs]" \
"*::setup.py commands:_setuppy"
}
(( $+functions[_setuppy_install_lib] )) ||
_setuppy_install_lib() {
_arguments -s \
"--install-dir=[directory to install to]" \
"-d[directory to install to]" \
"--build-dir=[build directory (where to install from)]" \
"-b[build directory (where to install from)]" \
"--force[force installation (overwrite existing files)]" \
"-f[force installation (overwrite existing files)]" \
"--compile[compile .py to .pyc \[default\]]" \
"-c[compile .py to .pyc \[default\]]" \
"--no-compile[don't compile .py files]" \
"--optimize=[also compile with optimization: -O1 for \"python -O\", -O2 for \"python -OO\", and -O0 to disable \[default: -O0\]]" \
"-O[also compile with optimization: -O1 for \"python -O\", -O2 for \"python -OO\", and -O0 to disable \[default: -O0\]]" \
"--skip-build[skip the build steps]" \
"*::setup.py commands:_setuppy"
}
(( $+functions[_setuppy_install_headers] )) ||
_setuppy_install_headers() {
_arguments -s \
"--install-dir=[directory to install header files to]" \
"-d[directory to install header files to]" \
"--force[force installation (overwrite existing files)]" \
"-f[force installation (overwrite existing files)]" \
"*::setup.py commands:_setuppy"
}
(( $+functions[_setuppy_install_scripts] )) ||
_setuppy_install_scripts() {
_arguments -s \
"--install-dir=[directory to install scripts to]" \
"-d[directory to install scripts to]" \
"--build-dir=[build directory (where to install from)]" \
"-b[build directory (where to install from)]" \
"--force[force installation (overwrite existing files)]" \
"-f[force installation (overwrite existing files)]" \
"--skip-build[skip the build steps]" \
"*::setup.py commands:_setuppy"
}
(( $+functions[_setuppy_install_data] )) ||
_setuppy_install_data() {
_arguments -s \
"--install-dir=[base directory for installing data files (default: installation base dir)]" \
"-d[base directory for installing data files (default: installation base dir)]" \
"--root=[install everything relative to this alternate root directory]" \
"--force[force installation (overwrite existing files)]" \
"-f[force installation (overwrite existing files)]" \
"*::setup.py commands:_setuppy"
}
(( $+functions[_setuppy_sdist] )) ||
_setuppy_sdist() {
_arguments -s \
"--formats=[formats for source distribution (comma-separated list)]" \
"--keep-temp[keep the distribution tree around after creating archive file(s)]" \
"-k[keep the distribution tree around after creating archive file(s)]" \
"--dist-dir=[directory to put the source distribution archive(s) in \[default: dist\]]" \
"-d[directory to put the source distribution archive(s) in \[default: dist\]]" \
"*::setup.py commands:_setuppy"
}
(( $+functions[_setuppy_register] )) ||
_setuppy_register() {
_arguments -s \
"--repository=[url of repository \[default: http://pypi.python.org/pypi\]]" \
"-r[url of repository \[default: http://pypi.python.org/pypi\]]" \
"--show-response[display full response text from server]" \
"--list-classifiers[list the valid Trove classifiers]" \
"--strict[Will stop the registering if the meta-data are not fully compliant]" \
"*::setup.py commands:_setuppy"
}
(( $+functions[_setuppy_bdist] )) ||
_setuppy_bdist() {
_arguments -s \
"--bdist-base=[temporary directory for creating built distributions]" \
"-b[temporary directory for creating built distributions]" \
"--plat-name=[platform name to embed in generated filenames (default: linux-i686)]" \
"-p[platform name to embed in generated filenames (default: linux-i686)]" \
"--formats=[formats for distribution (comma-separated list)]" \
"--dist-dir=[directory to put final built distributions in \[default: dist\]]" \
"-d[directory to put final built distributions in \[default: dist\]]" \
"--skip-build[skip rebuilding everything (for testing/debugging)]" \
"--owner=[Owner name used when creating a tar file \[default: current user\]]" \
"-u[Owner name used when creating a tar file \[default: current user\]]" \
"--group=[Group name used when creating a tar file \[default: current group\]]" \
"-g[Group name used when creating a tar file \[default: current group\]]" \
"*::setup.py commands:_setuppy"
}
(( $+functions[_setuppy_bdist_dumb] )) ||
_setuppy_bdist_dumb() {
_arguments -s \
"--bdist-dir=[temporary directory for creating the distribution]" \
"-d[temporary directory for creating the distribution]" \
"--plat-name=[platform name to embed in generated filenames (default: linux-i686)]" \
"-p[platform name to embed in generated filenames (default: linux-i686)]" \
"--format=[archive format to create (tar, ztar, gztar, zip)]" \
"-f[archive format to create (tar, ztar, gztar, zip)]" \
"--keep-temp[keep the pseudo-installation tree around after creating the distribution archive]" \
"-k[keep the pseudo-installation tree around after creating the distribution archive]" \
"--dist-dir=[directory to put final built distributions in]" \
"-d[directory to put final built distributions in]" \
"--skip-build[skip rebuilding everything (for testing/debugging)]" \
"--relative[build the archive using relative paths(default: false)]" \
"--owner=[Owner name used when creating a tar file \[default: current user\]]" \
"-u[Owner name used when creating a tar file \[default: current user\]]" \
"--group=[Group name used when creating a tar file \[default: current group\]]" \
"-g[Group name used when creating a tar file \[default: current group\]]" \
"*::setup.py commands:_setuppy"
}
(( $+functions[_setuppy_bdist_rpm] )) ||
_setuppy_bdist_rpm() {
_arguments -s \
"--bdist-base=[base directory for creating built distributions]" \
"--rpm-base=[base directory for creating RPMs (defaults to \"rpm\" under --bdist-base; must be specified for RPM 2)]" \
"--dist-dir=[directory to put final RPM files in (and .spec files if --spec-only)]" \
"-d[directory to put final RPM files in (and .spec files if --spec-only)]" \
"--python=[path to Python interpreter to hard-code in the .spec file (default: \"python\")]" \
"--fix-python[hard-code the exact path to the current Python interpreter in the .spec file]" \
"--spec-only[only regenerate spec file]" \
"--source-only[only generate source RPM]" \
"--binary-only[only generate binary RPM]" \
"--use-bzip2[use bzip2 instead of gzip to create source distribution]" \
"--distribution-name=[name of the (Linux) distribution to which this RPM applies (*not* the name of the module distribution!)]" \
"--group=[package classification \[default: \"Development/Libraries\"\]]" \
"--release=[RPM release number]" \
"--serial=[RPM serial number]" \
"--vendor=[RPM \"vendor\" (eg. \"Joe Blow <[email protected]>\") \[default: maintainer or author from setup script\]]" \
"--packager=[RPM packager (eg. \"Jane Doe <[email protected]>\")\[default: vendor\]]" \
"--doc-files=[list of documentation files (space or comma-separated)]" \
"--changelog=[RPM changelog]" \
"--icon=[name of icon file]" \
"--provides=[capabilities provided by this package]" \
"--requires=[capabilities required by this package]" \
"--conflicts=[capabilities which conflict with this package]" \
"--build-requires=[capabilities required to build this package]" \
"--obsoletes=[capabilities made obsolete by this package]" \
"--no-autoreq[do not automatically calculate dependencies]" \
"--keep-temp[don't clean up RPM build directory]" \
"-k[don't clean up RPM build directory]" \
"--no-keep-temp[clean up RPM build directory \[default\]]" \
"--use-rpm-opt-flags[compile with RPM_OPT_FLAGS when building from source RPM]" \
"--no-rpm-opt-flags[do not pass any RPM CFLAGS to compiler]" \
"--rpm3-mode[RPM 3 compatibility mode (default)]" \
"--rpm2-mode[RPM 2 compatibility mode]" \
"--prep-script=[Specify a script for the PREP phase of RPM building]" \
"--build-script=[Specify a script for the BUILD phase of RPM building]" \
"--pre-install=[Specify a script for the pre-INSTALL phase of RPM building]" \
"--install-script=[Specify a script for the INSTALL phase of RPM building]" \
"--post-install=[Specify a script for the post-INSTALL phase of RPM building]" \
"--pre-uninstall=[Specify a script for the pre-UNINSTALL phase of RPM building]" \
"--post-uninstall=[Specify a script for the post-UNINSTALL phase of RPM building]" \
"--clean-script=[Specify a script for the CLEAN phase of RPM building]" \
"--verify-script=[Specify a script for the VERIFY phase of the RPM build]" \
"--force-arch=[Force an architecture onto the RPM build process]" \
"--quiet[Run the INSTALL phase of RPM building in quiet mode]" \
"-q[Run the INSTALL phase of RPM building in quiet mode]" \
"*::setup.py commands:_setuppy"
}
(( $+functions[_setuppy_bdist_wininst] )) ||
_setuppy_bdist_wininst() {
_arguments -s \
"--bdist-dir=[temporary directory for creating the distribution]" \
"--plat-name=[platform name to embed in generated filenames (default: linux-i686)]" \
"-p[platform name to embed in generated filenames (default: linux-i686)]" \
"--keep-temp[keep the pseudo-installation tree around after creating the distribution archive]" \
"-k[keep the pseudo-installation tree around after creating the distribution archive]" \
"--target-version=[require a specific python version on the target system]" \
"--no-target-compile[do not compile .py to .pyc on the target system]" \
"-c[do not compile .py to .pyc on the target system]" \
"--no-target-optimize[do not compile .py to .pyo (optimized)on the target system]" \
"-o[do not compile .py to .pyo (optimized)on the target system]" \
"--dist-dir=[directory to put final built distributions in]" \
"-d[directory to put final built distributions in]" \
"--bitmap=[bitmap to use for the installer instead of python-powered logo]" \
"-b[bitmap to use for the installer instead of python-powered logo]" \
"--title=[title to display on the installer background instead of default]" \
"-t[title to display on the installer background instead of default]" \
"--skip-build[skip rebuilding everything (for testing/debugging)]" \
"--install-script=[basename of installation script to be run afterinstallation or before deinstallation]" \
"--pre-install-script=[Fully qualified filename of a script to be run before any files are installed. This script need not be in the distribution]" \
"--user-access-control=[specify Vista's UAC handling - 'none'/default=no handling, 'auto'=use UAC if target Python installed for all users, 'force'=always use UAC]" \
"*::setup.py commands:_setuppy"
}
(( $+functions[_setuppy_upload] )) ||
_setuppy_upload() {
_arguments -s \
"--repository=[url of repository \[default: http://pypi.python.org/pypi\]]" \
"-r[url of repository \[default: http://pypi.python.org/pypi\]]" \
"--show-response[display full response text from server]" \
"--sign[sign files to upload using gpg]" \
"-s[sign files to upload using gpg]" \
"--identity=[GPG identity used to sign files]" \
"-i[GPG identity used to sign files]" \
"*::setup.py commands:_setuppy"
}
(( $+functions[_setuppy_check] )) ||
_setuppy_check() {
_arguments -s \
"--metadata[Verify meta-data]" \
"-m[Verify meta-data]" \
"--restructuredtext[Checks if long string meta-data syntax are reStructuredText-compliant]" \
"-r[Checks if long string meta-data syntax are reStructuredText-compliant]" \
"--strict[Will exit with an error if a check fails]" \
"-s[Will exit with an error if a check fails]" \
"*::setup.py commands:_setuppy"
}
(( $+functions[_setuppy_alias] )) ||
_setuppy_alias() {
_arguments -s \
"--remove[remove (unset) the alias]" \
"-r[remove (unset) the alias]" \
"--global-config[save options to the site-wide distutils.cfg file]" \
"-g[save options to the site-wide distutils.cfg file]" \
"--user-config[save options to the current user's pydistutils.cfg file]" \
"-u[save options to the current user's pydistutils.cfg file]" \
"--filename=[configuration file to use (default=setup.cfg)]" \
"-f[configuration file to use (default=setup.cfg)]" \
"*::setup.py commands:_setuppy"
}
(( $+functions[_setuppy_bdist_egg] )) ||
_setuppy_bdist_egg() {
_arguments -s \
"--bdist-dir=[temporary directory for creating the distribution]" \
"-b[temporary directory for creating the distribution]" \
"--plat-name=[platform name to embed in generated filenames (default: linux-i686)]" \
"-p[platform name to embed in generated filenames (default: linux-i686)]" \
"--exclude-source-files[remove all .py files from the generated egg]" \
"--keep-temp[keep the pseudo-installation tree around after creating the distribution archive]" \
"-k[keep the pseudo-installation tree around after creating the distribution archive]" \
"--dist-dir=[directory to put final built distributions in]" \
"-d[directory to put final built distributions in]" \
"--skip-build[skip rebuilding everything (for testing/debugging)]" \
"*::setup.py commands:_setuppy"
}
(( $+functions[_setuppy_develop] )) ||
_setuppy_develop() {
_arguments -s \
"--prefix=[installation prefix]" \
"--zip-ok[install package as a zipfile]" \
"-z[install package as a zipfile]" \
"--multi-version[make apps have to require() a version]" \
"-m[make apps have to require() a version]" \
"--upgrade[force upgrade (searches PyPI for latest versions)]" \
"-U[force upgrade (searches PyPI for latest versions)]" \
"--install-dir=[install package to DIR]" \
"-d[install package to DIR]" \
"--script-dir=[install scripts to DIR]" \
"-s[install scripts to DIR]" \
"--exclude-scripts[Don't install scripts]" \
"-x[Don't install scripts]" \
"--always-copy[Copy all needed packages to install dir]" \
"-a[Copy all needed packages to install dir]" \
"--index-url=[base URL of Python Package Index]" \
"-i[base URL of Python Package Index]" \
"--find-links=[additional URL(s) to search for packages]" \
"-f[additional URL(s) to search for packages]" \
"--delete-conflicting[no longer needed; don't use this]" \
"-D[no longer needed; don't use this]" \
"--ignore-conflicts-at-my-risk[no longer needed; don't use this]" \
"--build-directory=[download/extract/build in DIR; keep the results]" \
"-b[download/extract/build in DIR; keep the results]" \
"--optimize=[also compile with optimization: -O1 for \"python -O\", -O2 for \"python -OO\", and -O0 to disable \[default: -O0\]]" \
"-O[also compile with optimization: -O1 for \"python -O\", -O2 for \"python -OO\", and -O0 to disable \[default: -O0\]]" \
"--record=[filename in which to record list of installed files]" \
"--always-unzip[don't install as a zipfile, no matter what]" \
"-Z[don't install as a zipfile, no matter what]" \
"--site-dirs=[list of directories where .pth files work]" \
"-S[list of directories where .pth files work]" \
"--editable[Install specified packages in editable form]" \
"-e[Install specified packages in editable form]" \
"--no-deps[don't install dependencies]" \
"-N[don't install dependencies]" \
"--allow-hosts=[pattern(s) that hostnames must match]" \
"-H[pattern(s) that hostnames must match]" \
"--local-snapshots-ok[allow building eggs from local checkouts]" \
"-l[allow building eggs from local checkouts]" \
"--version[print version information and exit]" \
"--install-layout=[installation layout to choose (known values: deb)]" \
"--force-installation-into-system-dir[force installation into /usr]" \
"-0[force installation into /usr]" \
"--no-find-links[Don't load find-links defined in packages being installed]" \
"--user[install in user site-package '/home/hattori/.local/lib/python2.7/site-packages']" \
"--uninstall[Uninstall this source package]" \
"-u[Uninstall this source package]" \
"--egg-path=[Set the path to be used in the .egg-link file]" \
"*::setup.py commands:_setuppy"
}
(( $+functions[_setuppy_easy_install] )) ||
_setuppy_easy_install() {
_arguments -s \
"--prefix=[installation prefix]" \
"--zip-ok[install package as a zipfile]" \
"-z[install package as a zipfile]" \
"--multi-version[make apps have to require() a version]" \
"-m[make apps have to require() a version]" \
"--upgrade[force upgrade (searches PyPI for latest versions)]" \
"-U[force upgrade (searches PyPI for latest versions)]" \
"--install-dir=[install package to DIR]" \
"-d[install package to DIR]" \
"--script-dir=[install scripts to DIR]" \
"-s[install scripts to DIR]" \
"--exclude-scripts[Don't install scripts]" \
"-x[Don't install scripts]" \
"--always-copy[Copy all needed packages to install dir]" \
"-a[Copy all needed packages to install dir]" \
"--index-url=[base URL of Python Package Index]" \
"-i[base URL of Python Package Index]" \
"--find-links=[additional URL(s) to search for packages]" \
"-f[additional URL(s) to search for packages]" \
"--delete-conflicting[no longer needed; don't use this]" \
"-D[no longer needed; don't use this]" \
"--ignore-conflicts-at-my-risk[no longer needed; don't use this]" \
"--build-directory=[download/extract/build in DIR; keep the results]" \
"-b[download/extract/build in DIR; keep the results]" \
"--optimize=[also compile with optimization: -O1 for \"python -O\", -O2 for \"python -OO\", and -O0 to disable \[default: -O0\]]" \
"-O[also compile with optimization: -O1 for \"python -O\", -O2 for \"python -OO\", and -O0 to disable \[default: -O0\]]" \
"--record=[filename in which to record list of installed files]" \
"--always-unzip[don't install as a zipfile, no matter what]" \
"-Z[don't install as a zipfile, no matter what]" \
"--site-dirs=[list of directories where .pth files work]" \
"-S[list of directories where .pth files work]" \
"--editable[Install specified packages in editable form]" \
"-e[Install specified packages in editable form]" \
"--no-deps[don't install dependencies]" \
"-N[don't install dependencies]" \
"--allow-hosts=[pattern(s) that hostnames must match]" \
"-H[pattern(s) that hostnames must match]" \
"--local-snapshots-ok[allow building eggs from local checkouts]" \
"-l[allow building eggs from local checkouts]" \
"--version[print version information and exit]" \
"--install-layout=[installation layout to choose (known values: deb)]" \
"--force-installation-into-system-dir[force installation into /usr]" \
"-0[force installation into /usr]" \
"--no-find-links[Don't load find-links defined in packages being installed]" \
"--user[install in user site-package '/home/hattori/.local/lib/python2.7/site-packages']" \
"*::setup.py commands:_setuppy"
}
(( $+functions[_setuppy_egg_info] )) ||
_setuppy_egg_info() {
_arguments -s \
"--egg-base=[directory containing .egg-info directories (default: top of the source tree)]" \
"-e[directory containing .egg-info directories (default: top of the source tree)]" \
"--tag-svn-revision[Add subversion revision ID to version number]" \
"-r[Add subversion revision ID to version number]" \
"--tag-date[Add date stamp (e.g. 20050528) to version number]" \
"-d[Add date stamp (e.g. 20050528) to version number]" \
"--tag-build=[Specify explicit tag to add to version number]" \
"-b[Specify explicit tag to add to version number]" \
"--no-svn-revision[Don't add subversion revision ID \[default\]]" \
"-R[Don't add subversion revision ID \[default\]]" \
"--no-date[Don't include date stamp \[default\]]" \
"-D[Don't include date stamp \[default\]]" \
"*::setup.py commands:_setuppy"
}
(( $+functions[_setuppy_rotate] )) ||
_setuppy_rotate() {
_arguments -s \
"--match=[patterns to match (required)]" \
"-m[patterns to match (required)]" \
"--dist-dir=[directory where the distributions are]" \
"-d[directory where the distributions are]" \
"--keep=[number of matching distributions to keep]" \
"-k[number of matching distributions to keep]" \
"*::setup.py commands:_setuppy"
}
(( $+functions[_setuppy_saveopts] )) ||
_setuppy_saveopts() {
_arguments -s \
"--global-config[save options to the site-wide distutils.cfg file]" \
"-g[save options to the site-wide distutils.cfg file]" \
"--user-config[save options to the current user's pydistutils.cfg file]" \
"-u[save options to the current user's pydistutils.cfg file]" \
"--filename=[configuration file to use (default=setup.cfg)]" \
"-f[configuration file to use (default=setup.cfg)]" \
"*::setup.py commands:_setuppy"
}
(( $+functions[_setuppy_setopt] )) ||
_setuppy_setopt() {
_arguments -s \
"--command=[command to set an option for]" \
"-c[command to set an option for]" \
"--option=[option to set]" \
"-o[option to set]" \
"--set-value=[value of the option]" \
"-s[value of the option]" \
"--remove[remove (unset) the value]" \
"-r[remove (unset) the value]" \
"--global-config[save options to the site-wide distutils.cfg file]" \
"-g[save options to the site-wide distutils.cfg file]" \
"--user-config[save options to the current user's pydistutils.cfg file]" \
"-u[save options to the current user's pydistutils.cfg file]" \
"--filename=[configuration file to use (default=setup.cfg)]" \
"-f[configuration file to use (default=setup.cfg)]" \
"*::setup.py commands:_setuppy"
}
(( $+functions[_setuppy_test] )) ||
_setuppy_test() {
_arguments -s \
"--test-module=[Run 'test_suite' in specified module]" \
"-m[Run 'test_suite' in specified module]" \
"--test-suite=[Test suite to run (e.g. 'some_module.test_suite')]" \
"-s[Test suite to run (e.g. 'some_module.test_suite')]" \
"*::setup.py commands:_setuppy"
}
(( $+functions[_setuppy_install_egg_info] )) ||
_setuppy_install_egg_info() {
_arguments -s \
"--install-dir=[directory to install to]" \
"-d[directory to install to]" \
"*::setup.py commands:_setuppy"
}
(( $+functions[_setuppy_upload_docs] )) ||
_setuppy_upload_docs() {
_arguments -s \
"--repository=[url of repository \[default: http://pypi.python.org/pypi\]]" \
"-r[url of repository \[default: http://pypi.python.org/pypi\]]" \
"--show-response[display full response text from server]" \
"--upload-dir=[directory to upload]" \
"*::setup.py commands:_setuppy"
}
_setup.py "$@"