]> granicus.if.org Git - php/commitdiff
* add "nobuild" option to installer (-B or --nobuild option to CLI frontend)
authorStig Bakken <ssb@php.net>
Thu, 6 Jun 2002 10:51:26 +0000 (10:51 +0000)
committerStig Bakken <ssb@php.net>
Thu, 6 Jun 2002 10:51:26 +0000 (10:51 +0000)
pear/PEAR/Command/Install.php
pear/PEAR/Installer.php

index cabd97ff1f263966b75c9d6998deb3f9c641e972..6c24be19ad597ab4f08ff0f065176da786970e5c 100644 (file)
@@ -53,6 +53,10 @@ class PEAR_Command_Install extends PEAR_Command_Common
                     'shortopt' => 's',
                     'doc' => 'soft install, fail silently, or upgrade if already installed',
                     ),
+                'nobuild' => array(
+                    'shortopt' => 'B',
+                    'doc' => 'don\'t build C extensions',
+                    ),
                 'nocompress' => array(
                     'shortopt' => 'Z',
                     'doc' => 'request uncompressed files when downloading',
@@ -95,6 +99,10 @@ four ways of specifying packages.
                     'shortopt' => 'r',
                     'doc' => 'do not install files, only register the package as upgraded',
                     ),
+                'nobuild' => array(
+                    'shortopt' => 'B',
+                    'doc' => 'don\'t build C extensions',
+                    ),
                 'nocompress' => array(
                     'shortopt' => 'Z',
                     'doc' => 'request uncompressed files when downloading',
index a3c8f100d2ed45a6e41d70d3572d1e69bb501923..246ae19183be6d424ceb0042dffa29c59b42b70f 100644 (file)
@@ -467,7 +467,7 @@ class PEAR_Installer extends PEAR_Common
                 }
             }
 
-            if ($this->source_files > 0) {
+            if ($this->source_files > 0 && empty($options['nobuild'])) {
                 $this->log(1, "$this->source_files source files, building");
                 $bob = &new PEAR_Builder($this->ui);
                 $bob->debug = $this->debug;