CC-2104: Use PIP to install python packages

-Now uninstalls poster package.
This commit is contained in:
martin 2011-03-29 12:59:15 -04:00
parent 97f63bd76a
commit 0ad7a0afcd
2 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,7 @@ require_once(dirname(__FILE__).'/installInit.php');
AirtimeInstall::ExitIfNotRoot(); AirtimeInstall::ExitIfNotRoot();
AirtimeInstall::RemoveSymlinks(); AirtimeInstall::RemoveSymlinks();
AirtimeInstall::RemovePythonPackages();
echo "******************************* Uninstall Begin ********************************".PHP_EOL; echo "******************************* Uninstall Begin ********************************".PHP_EOL;
//------------------------------------------------------------------------ //------------------------------------------------------------------------

View File

@ -198,6 +198,11 @@ class AirtimeInstall {
@exec($command); @exec($command);
} }
public static function RemovePythonPackages(){
$command = "pip uninstall poster";
@exec($command);
}
public static function DeleteFilesRecursive($p_path) public static function DeleteFilesRecursive($p_path)
{ {
$command = "rm -rf $p_path"; $command = "rm -rf $p_path";