/[gentoo-x86]/eclass/distutils-r1.eclass
Gentoo

Contents of /eclass/distutils-r1.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.62 - (show annotations) (download)
Mon Mar 4 19:29:43 2013 UTC (22 months, 3 weeks ago) by mgorny
Branch: MAIN
Changes since 1.61: +5 -22 lines
Use multilib_for_best_variant() for the *_all() phases.

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v 1.61 2013/03/04 19:28:47 mgorny Exp $
4
5 # @ECLASS: distutils-r1
6 # @MAINTAINER:
7 # Python team <python@gentoo.org>
8 # @AUTHOR:
9 # Author: Michał Górny <mgorny@gentoo.org>
10 # Based on the work of: Krzysztof Pawlik <nelchael@gentoo.org>
11 # @BLURB: A simple eclass to build Python packages using distutils.
12 # @DESCRIPTION:
13 # A simple eclass providing functions to build Python packages using
14 # the distutils build system. It exports phase functions for all
15 # the src_* phases. Each of the phases runs two pseudo-phases:
16 # python_..._all() (e.g. python_prepare_all()) once in ${S}, then
17 # python_...() (e.g. python_prepare()) for each implementation
18 # (see: python_foreach_impl() in python-r1).
19 #
20 # In distutils-r1_src_prepare(), the 'all' function is run before
21 # per-implementation ones (because it creates the implementations),
22 # per-implementation functions are run in a random order.
23 #
24 # In remaining phase functions, the per-implementation functions are run
25 # before the 'all' one, and they are ordered from the least to the most
26 # preferred implementation (so that 'better' files overwrite 'worse'
27 # ones).
28 #
29 # If the ebuild doesn't specify a particular pseudo-phase function,
30 # the default one will be used (distutils-r1_...). Defaults are provided
31 # for all per-implementation pseudo-phases, python_prepare_all()
32 # and python_install_all(); whenever writing your own pseudo-phase
33 # functions, you should consider calling the defaults (and especially
34 # distutils-r1_python_prepare_all).
35 #
36 # Please note that distutils-r1 sets RDEPEND and DEPEND unconditionally
37 # for you.
38 #
39 # Also, please note that distutils-r1 will always inherit python-r1
40 # as well. Thus, all the variables defined and documented there are
41 # relevant to the packages using distutils-r1.
42 #
43 # For more information, please see the python-r1 Developer's Guide:
44 # http://www.gentoo.org/proj/en/Python/python-r1/dev-guide.xml
45
46 case "${EAPI:-0}" in
47 0|1|2|3)
48 die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}"
49 ;;
50 4|5)
51 ;;
52 *)
53 die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
54 ;;
55 esac
56
57 # @ECLASS-VARIABLE: DISTUTILS_OPTIONAL
58 # @DEFAULT_UNSET
59 # @DESCRIPTION:
60 # If set to a non-null value, distutils part in the ebuild will
61 # be considered optional. No dependencies will be added and no phase
62 # functions will be exported.
63 #
64 # If you enable DISTUTILS_OPTIONAL, you have to set proper dependencies
65 # for your package (using ${PYTHON_DEPS}) and to either call
66 # distutils-r1 default phase functions or call the build system
67 # manually.
68
69 # @ECLASS-VARIABLE: DISTUTILS_SINGLE_IMPL
70 # @DEFAULT_UNSET
71 # @DESCRIPTION:
72 # If set to a non-null value, the ebuild will support setting a single
73 # Python implementation only. It will effectively replace the python-r1
74 # eclass inherit with python-single-r1.
75 #
76 # Note that inheriting python-single-r1 will cause pkg_setup()
77 # to be exported. It must be run in order for the eclass functions
78 # to function properly.
79
80 if [[ ! ${_DISTUTILS_R1} ]]; then
81
82 inherit eutils
83
84 if [[ ! ${DISTUTILS_SINGLE_IMPL} ]]; then
85 inherit multiprocessing python-r1
86 else
87 inherit python-single-r1
88 fi
89
90 fi
91
92 if [[ ! ${DISTUTILS_OPTIONAL} ]]; then
93 EXPORT_FUNCTIONS src_prepare src_configure src_compile src_test src_install
94 fi
95
96 if [[ ! ${_DISTUTILS_R1} ]]; then
97
98 if [[ ! ${DISTUTILS_OPTIONAL} ]]; then
99 RDEPEND=${PYTHON_DEPS}
100 DEPEND=${PYTHON_DEPS}
101 fi
102
103 # @ECLASS-VARIABLE: PATCHES
104 # @DEFAULT_UNSET
105 # @DESCRIPTION:
106 # An array containing patches to be applied to the sources before
107 # copying them.
108 #
109 # If unset, no custom patches will be applied.
110 #
111 # Please note, however, that at some point the eclass may apply
112 # additional distutils patches/quirks independently of this variable.
113 #
114 # Example:
115 # @CODE
116 # PATCHES=( "${FILESDIR}"/${P}-make-gentoo-happy.patch )
117 # @CODE
118
119 # @ECLASS-VARIABLE: DOCS
120 # @DEFAULT_UNSET
121 # @DESCRIPTION:
122 # An array containing documents installed using dodoc. The files listed
123 # there must exist in the directory from which
124 # distutils-r1_python_install_all() is run (${S} by default).
125 #
126 # If unset, the function will instead look up files matching default
127 # filename pattern list (from the Package Manager Specification),
128 # and install those found.
129 #
130 # Example:
131 # @CODE
132 # DOCS=( NEWS README )
133 # @CODE
134
135 # @ECLASS-VARIABLE: HTML_DOCS
136 # @DEFAULT_UNSET
137 # @DESCRIPTION:
138 # An array containing documents installed using dohtml. The files
139 # and directories listed there must exist in the directory from which
140 # distutils-r1_python_install_all() is run (${S} by default).
141 #
142 # If unset, no HTML docs will be installed.
143 #
144 # Example:
145 # @CODE
146 # HTML_DOCS=( doc/html/. )
147 # @CODE
148
149 # @ECLASS-VARIABLE: EXAMPLES
150 # @DEFAULT_UNSET
151 # @DESCRIPTION:
152 # An array containing examples installed into 'examples' doc
153 # subdirectory. The files and directories listed there must exist
154 # in the directory from which distutils-r1_python_install_all() is run
155 # (${S} by default).
156 #
157 # The 'examples' subdirectory will be marked not to be compressed
158 # automatically.
159 #
160 # If unset, no examples will be installed.
161 #
162 # Example:
163 # @CODE
164 # EXAMPLES=( examples/. demos/. )
165 # @CODE
166
167 # @ECLASS-VARIABLE: DISTUTILS_IN_SOURCE_BUILD
168 # @DEFAULT_UNSET
169 # @DESCRIPTION:
170 # If set to a non-null value, in-source builds will be enabled.
171 # If unset, the default is to use in-source builds when python_prepare()
172 # is declared, and out-of-source builds otherwise.
173 #
174 # If in-source builds are used, the eclass will create a copy of package
175 # sources for each Python implementation in python_prepare_all(),
176 # and work on that copy afterwards.
177 #
178 # If out-of-source builds are used, the eclass will instead work
179 # on the sources directly, prepending setup.py arguments with
180 # 'build --build-base ${BUILD_DIR}' to enforce keeping & using built
181 # files in the specific root.
182
183 # @ECLASS-VARIABLE: DISTUTILS_NO_PARALLEL_BUILD
184 # @DEFAULT_UNSET
185 # @DESCRIPTION:
186 # If set to a non-null value, the parallel build feature will
187 # be disabled.
188 #
189 # When parallel builds are used, the implementation-specific sub-phases
190 # for selected Python implementation will be run in parallel. This will
191 # increase build efficiency with distutils which does not do parallel
192 # builds.
193 #
194 # This variable can be used to disable the afore-mentioned feature
195 # in case it causes issues with the package.
196
197 # @ECLASS-VARIABLE: mydistutilsargs
198 # @DEFAULT_UNSET
199 # @DESCRIPTION:
200 # An array containing options to be passed to setup.py.
201 #
202 # Example:
203 # @CODE
204 # python_configure_all() {
205 # mydistutilsargs=( --enable-my-hidden-option )
206 # }
207 # @CODE
208
209 # @FUNCTION: esetup.py
210 # @USAGE: [<args>...]
211 # @DESCRIPTION:
212 # Run the setup.py using currently selected Python interpreter
213 # (if ${PYTHON} is set; fallback 'python' otherwise). The setup.py will
214 # be passed default ${mydistutilsargs[@]}, then any parameters passed
215 # to this command and optionally a standard option set (e.g. the build
216 # directory in an ebuild using out-of-source builds).
217 #
218 # This command dies on failure.
219 esetup.py() {
220 debug-print-function ${FUNCNAME} "${@}"
221
222 local add_args=()
223 if [[ ${BUILD_DIR} ]]; then
224 # if setuptools is used, adjust egg_info path as well
225 # (disabled since it causes build not to install scripts)
226 # if "${PYTHON:-python}" setup.py --help egg_info &>/dev/null; then
227 # add_args+=(
228 # egg_info --egg-base "${BUILD_DIR}"
229 # )
230 # fi
231
232 add_args+=(
233 build
234 --build-base "${BUILD_DIR}"
235 # using a single directory for them helps us export ${PYTHONPATH}
236 --build-lib "${BUILD_DIR}/lib"
237 # make the ebuild writer lives easier
238 --build-scripts "${BUILD_DIR}/scripts"
239 )
240 elif [[ ! ${DISTUTILS_IN_SOURCE_BUILD} ]]; then
241 die 'Out-of-source build requested, yet BUILD_DIR unset.'
242 fi
243
244 set -- "${PYTHON:-python}" setup.py \
245 "${mydistutilsargs[@]}" "${@}" "${add_args[@]}"
246
247 echo "${@}" >&2
248 "${@}" || die
249 }
250
251 # @FUNCTION: distutils_install_for_testing
252 # @USAGE: [<args>...]
253 # @DESCRIPTION:
254 # Install the package into a temporary location for running tests.
255 # Update PYTHONPATH appropriately and set TEST_DIR to the test
256 # installation root. The Python packages will be installed in 'lib'
257 # subdir, and scripts in 'scripts' subdir (like in BUILD_DIR).
258 #
259 # Please note that this function should be only used if package uses
260 # namespaces (and therefore proper install needs to be done to enforce
261 # PYTHONPATH) or tests rely on the results of install command.
262 # For most of the packages, tests built in BUILD_DIR are good enough.
263 distutils_install_for_testing() {
264 debug-print-function ${FUNCNAME} "${@}"
265
266 # A few notes:
267 # 1) because of namespaces, we can't use 'install --root',
268 # 2) 'install --home' is terribly broken on pypy, so we need
269 # to override --install-lib and --install-scripts,
270 # 3) non-root 'install' complains about PYTHONPATH and missing dirs,
271 # so we need to set it properly and mkdir them,
272 # 4) it runs a bunch of commands which write random files to cwd,
273 # in order to avoid that, we need to run them ourselves to pass
274 # alternate build paths,
275 # 5) 'install' needs to go before 'bdist_egg' or the latter would
276 # re-set install paths.
277
278 TEST_DIR=${BUILD_DIR}/test
279 local bindir=${TEST_DIR}/scripts
280 local libdir=${TEST_DIR}/lib
281 PYTHONPATH=${libdir}:${PYTHONPATH}
282
283 local add_args=(
284 install
285 --home="${TEST_DIR}"
286 --install-lib="${libdir}"
287 --install-scripts="${bindir}"
288 )
289
290 if "${PYTHON:-python}" setup.py --help bdist_egg &>/dev/null; then
291 add_args+=(
292 bdist_egg --dist-dir="${TEST_DIR}"
293 )
294 fi
295
296 mkdir -p "${libdir}" || die
297 esetup.py "${add_args[@]}"
298 }
299
300 # @FUNCTION: distutils-r1_python_prepare_all
301 # @DESCRIPTION:
302 # The default python_prepare_all(). It applies the patches from PATCHES
303 # array, then user patches and finally calls python_copy_sources to
304 # create copies of resulting sources for each Python implementation.
305 #
306 # At some point in the future, it may also apply eclass-specific
307 # distutils patches and/or quirks.
308 distutils-r1_python_prepare_all() {
309 debug-print-function ${FUNCNAME} "${@}"
310
311 [[ ${PATCHES} ]] && epatch "${PATCHES[@]}"
312
313 epatch_user
314
315 # by default, use in-source build if python_prepare() is used
316 if [[ ! ${DISTUTILS_IN_SOURCE_BUILD+1} ]]; then
317 if declare -f python_prepare >/dev/null; then
318 DISTUTILS_IN_SOURCE_BUILD=1
319 fi
320 fi
321
322 if [[ ${DISTUTILS_IN_SOURCE_BUILD} && ! ${DISTUTILS_SINGLE_IMPL} ]]
323 then
324 # create source copies for each implementation
325 python_copy_sources
326 fi
327 }
328
329 # @FUNCTION: distutils-r1_python_prepare
330 # @DESCRIPTION:
331 # The default python_prepare(). A no-op.
332 distutils-r1_python_prepare() {
333 debug-print-function ${FUNCNAME} "${@}"
334
335 :
336 }
337
338 # @FUNCTION: distutils-r1_python_configure
339 # @DESCRIPTION:
340 # The default python_configure(). A no-op.
341 distutils-r1_python_configure() {
342 debug-print-function ${FUNCNAME} "${@}"
343
344 :
345 }
346
347 # @FUNCTION: distutils-r1_python_compile
348 # @USAGE: [additional-args...]
349 # @DESCRIPTION:
350 # The default python_compile(). Runs 'esetup.py build'. Any parameters
351 # passed to this function will be appended to setup.py invocation,
352 # i.e. passed as options to the 'build' command.
353 distutils-r1_python_compile() {
354 debug-print-function ${FUNCNAME} "${@}"
355
356 esetup.py build "${@}"
357 }
358
359 # @FUNCTION: distutils-r1_python_test
360 # @DESCRIPTION:
361 # The default python_test(). A no-op.
362 distutils-r1_python_test() {
363 debug-print-function ${FUNCNAME} "${@}"
364
365 :
366 }
367
368 # @FUNCTION: _distutils-r1_rename_scripts
369 # @USAGE: <path>
370 # @INTERNAL
371 # @DESCRIPTION:
372 # Renames installed Python scripts to be implementation-suffixed.
373 # ${EPYTHON} needs to be set to the implementation name.
374 #
375 # All executable scripts having shebang referencing ${EPYTHON}
376 # in given path will be renamed.
377 _distutils-r1_rename_scripts() {
378 debug-print-function ${FUNCNAME} "${@}"
379
380 local path=${1}
381 [[ ${path} ]] || die "${FUNCNAME}: no path given"
382
383 local f
384 while IFS= read -r -d '' f; do
385 debug-print "${FUNCNAME}: found executable at ${f#${D}/}"
386
387 if [[ "$(head -n 1 "${f}")" == '#!'*${EPYTHON}* ]]
388 then
389 debug-print "${FUNCNAME}: matching shebang: $(head -n 1 "${f}")"
390
391 local newf=${f}-${EPYTHON}
392 debug-print "${FUNCNAME}: renaming to ${newf#${D}/}"
393 mv "${f}" "${newf}" || die
394
395 debug-print "${FUNCNAME}: installing wrapper at ${f#${D}/}"
396 _python_ln_rel "${path}${EPREFIX}"/usr/bin/python-exec "${f}" || die
397 fi
398 done < <(find "${path}" -type f -executable -print0)
399 }
400
401 # @FUNCTION: distutils-r1_python_install
402 # @USAGE: [additional-args...]
403 # @DESCRIPTION:
404 # The default python_install(). Runs 'esetup.py install', appending
405 # the optimization flags. Then renames the installed scripts.
406 # Any parameters passed to this function will be appended
407 # to the setup.py invocation (i.e. as options to the 'install' command).
408 distutils-r1_python_install() {
409 debug-print-function ${FUNCNAME} "${@}"
410
411 local flags
412
413 case "${EPYTHON}" in
414 jython*)
415 flags=(--compile);;
416 *)
417 flags=(--compile -O2);;
418 esac
419 debug-print "${FUNCNAME}: [${EPYTHON}] flags: ${flags}"
420
421 # enable compilation for the install phase.
422 local PYTHONDONTWRITEBYTECODE
423 export PYTHONDONTWRITEBYTECODE
424
425 # python likes to compile any module it sees, which triggers sandbox
426 # failures if some packages haven't compiled their modules yet.
427 addpredict "$(python_get_sitedir)"
428 addpredict /usr/lib/portage/pym
429
430 local root=${D}/_${EPYTHON}
431 [[ ${DISTUTILS_SINGLE_IMPL} ]] && root=${D}
432
433 esetup.py install "${flags[@]}" --root="${root}" "${@}"
434
435 if [[ -d ${root}$(python_get_sitedir)/tests ]]; then
436 die "Package installs 'tests' package, file collisions likely."
437 fi
438
439 if [[ ! ${DISTUTILS_SINGLE_IMPL} ]]; then
440 _distutils-r1_rename_scripts "${root}"
441 _distutils-r1_merge_root "${root}" "${D}"
442 fi
443 }
444
445 # @FUNCTION: distutils-r1_merge_root
446 # @USAGE: <src-root> <dest-root>
447 # @INTERNAL
448 # @DESCRIPTION:
449 # Merge the directory tree from <src-root> to <dest-root>, removing
450 # the <src-root> in the process.
451 _distutils-r1_merge_root() {
452 local src=${1}
453 local dest=${2}
454
455 local lockfile=${T}/distutils-r1-merge-lock
456
457 if type -P lockf &>/dev/null; then
458 # On BSD, we have 'lockf' wrapper.
459 tar -C "${src}" -f - -c . \
460 | lockf "${lockfile}" tar -x -f - -C "${dest}"
461 else
462 local lock_fd
463 if type -P flock &>/dev/null; then
464 # On Linux, we have 'flock' which can lock fd.
465 redirect_alloc_fd lock_fd "${lockfile}" '>>'
466 flock ${lock_fd}
467 else
468 ewarn "distutils-r1: no locking service found, please report."
469 fi
470
471 cp -a -l -n "${src}"/. "${dest}"/
472
473 if [[ ${lock_fd} ]]; then
474 # Close the lock file when we are done with it.
475 # Prevents deadlock if we aren't in a subshell.
476 eval "exec ${lock_fd}>&-"
477 fi
478 fi
479 [[ ${?} == 0 ]] || die "Merging ${EPYTHON} image failed."
480
481 rm -rf "${src}"
482 }
483
484 # @FUNCTION: distutils-r1_python_install_all
485 # @DESCRIPTION:
486 # The default python_install_all(). It installs the documentation.
487 distutils-r1_python_install_all() {
488 debug-print-function ${FUNCNAME} "${@}"
489
490 if declare -p DOCS &>/dev/null; then
491 # an empty list == don't install anything
492 if [[ ${DOCS[@]} ]]; then
493 dodoc -r "${DOCS[@]}"
494 fi
495 else
496 local f
497 # same list as in PMS
498 for f in README* ChangeLog AUTHORS NEWS TODO CHANGES \
499 THANKS BUGS FAQ CREDITS CHANGELOG; do
500 if [[ -s ${f} ]]; then
501 dodoc "${f}"
502 fi
503 done
504 fi
505
506 if declare -p HTML_DOCS &>/dev/null; then
507 dohtml -r "${HTML_DOCS[@]}"
508 fi
509
510 if declare -p EXAMPLES &>/dev/null; then
511 local DOCDESTTREE=examples
512 dodoc -r "${EXAMPLES[@]}"
513
514 docompress -x /usr/share/doc/${PF}/examples
515 fi
516 }
517
518 # @FUNCTION: distutils-r1_run_phase
519 # @USAGE: [<argv>...]
520 # @INTERNAL
521 # @DESCRIPTION:
522 # Run the given command.
523 #
524 # If out-of-source builds are used, the phase function is run in source
525 # directory, with BUILD_DIR pointing at the build directory
526 # and PYTHONPATH having an entry for the module build directory.
527 #
528 # If in-source builds are used, the command is executed in the directory
529 # holding the per-implementation copy of sources. BUILD_DIR points
530 # to the 'build' subdirectory.
531 distutils-r1_run_phase() {
532 debug-print-function ${FUNCNAME} "${@}"
533
534 if [[ ${DISTUTILS_IN_SOURCE_BUILD} ]]; then
535 if [[ ! ${DISTUTILS_SINGLE_IMPL} ]]; then
536 pushd "${BUILD_DIR}" >/dev/null || die
537 fi
538 local BUILD_DIR=${BUILD_DIR}/build
539 fi
540 local -x PYTHONPATH="${BUILD_DIR}/lib:${PYTHONPATH}"
541
542 local TMPDIR=${T}/${EPYTHON}
543
544 mkdir -p "${TMPDIR}" || die
545
546 "${@}"
547
548 if [[ ${DISTUTILS_IN_SOURCE_BUILD} && ! ${DISTUTILS_SINGLE_IMPL} ]]
549 then
550 popd >/dev/null || die
551 fi
552 }
553
554 # @FUNCTION: _distutils-r1_run_common_phase
555 # @USAGE: [<argv>...]
556 # @INTERNAL
557 # @DESCRIPTION:
558 # Run the given command, restoring the best-implementation state.
559 #
560 # If in-source build is used, the command will be run in the copy
561 # of sources made for the best Python interpreter.
562 _distutils-r1_run_common_phase() {
563 local DISTUTILS_ORIG_BUILD_DIR=${BUILD_DIR}
564
565 local MULTIBUILD_VARIANTS
566 _python_obtain_impls
567
568 multibuild_for_best_variant _python_multibuild_wrapper \
569 distutils-r1_run_phase "${@}"
570 }
571
572 # @FUNCTION: _distutils-r1_run_foreach_impl
573 # @INTERNAL
574 # @DESCRIPTION:
575 # Run the given phase for each implementation if multiple implementations
576 # are enabled, once otherwise.
577 _distutils-r1_run_foreach_impl() {
578 debug-print-function ${FUNCNAME} "${@}"
579
580 set -- distutils-r1_run_phase "${@}"
581
582 if [[ ! ${DISTUTILS_SINGLE_IMPL} ]]; then
583 if [[ ${DISTUTILS_NO_PARALLEL_BUILD} || ${DISTUTILS_SINGLE_IMPL} ]]
584 then
585 python_foreach_impl "${@}"
586 else
587 python_parallel_foreach_impl "${@}"
588 fi
589 else
590 if [[ ! ${EPYTHON} ]]; then
591 die "EPYTHON unset, python-single-r1_pkg_setup not called?!"
592 fi
593 local BUILD_DIR=${BUILD_DIR:-${S}}
594 BUILD_DIR=${BUILD_DIR%%/}_${EPYTHON}
595
596 "${@}"
597 fi
598 }
599
600 distutils-r1_src_prepare() {
601 debug-print-function ${FUNCNAME} "${@}"
602
603 # common preparations
604 if declare -f python_prepare_all >/dev/null; then
605 python_prepare_all
606 else
607 distutils-r1_python_prepare_all
608 fi
609
610 if declare -f python_prepare >/dev/null; then
611 _distutils-r1_run_foreach_impl python_prepare
612 fi
613 }
614
615 distutils-r1_src_configure() {
616 if declare -f python_configure >/dev/null; then
617 _distutils-r1_run_foreach_impl python_configure
618 fi
619
620 if declare -f python_configure_all >/dev/null; then
621 _distutils-r1_run_common_phase python_configure_all
622 fi
623 }
624
625 distutils-r1_src_compile() {
626 debug-print-function ${FUNCNAME} "${@}"
627
628 if declare -f python_compile >/dev/null; then
629 _distutils-r1_run_foreach_impl python_compile
630 else
631 _distutils-r1_run_foreach_impl distutils-r1_python_compile
632 fi
633
634 if declare -f python_compile_all >/dev/null; then
635 _distutils-r1_run_common_phase python_compile_all
636 fi
637 }
638
639 distutils-r1_src_test() {
640 debug-print-function ${FUNCNAME} "${@}"
641
642 if declare -f python_test >/dev/null; then
643 _distutils-r1_run_foreach_impl python_test
644 fi
645
646 if declare -f python_test_all >/dev/null; then
647 _distutils-r1_run_common_phase python_test_all
648 fi
649 }
650
651 distutils-r1_src_install() {
652 debug-print-function ${FUNCNAME} "${@}"
653
654 if declare -f python_install >/dev/null; then
655 _distutils-r1_run_foreach_impl python_install
656 else
657 _distutils-r1_run_foreach_impl distutils-r1_python_install
658 fi
659
660 if declare -f python_install_all >/dev/null; then
661 _distutils-r1_run_common_phase python_install_all
662 else
663 _distutils-r1_run_common_phase distutils-r1_python_install_all
664 fi
665 }
666
667 _DISTUTILS_R1=1
668 fi

  ViewVC Help
Powered by ViewVC 1.1.20