CC-2104: Use PIP to install python packages
-Now uninstalls poster package.
This commit is contained in:
parent
97f63bd76a
commit
0ad7a0afcd
@ -21,6 +21,7 @@ require_once(dirname(__FILE__).'/installInit.php');
|
||||
AirtimeInstall::ExitIfNotRoot();
|
||||
|
||||
AirtimeInstall::RemoveSymlinks();
|
||||
AirtimeInstall::RemovePythonPackages();
|
||||
|
||||
echo "******************************* Uninstall Begin ********************************".PHP_EOL;
|
||||
//------------------------------------------------------------------------
|
||||
|
||||
@ -198,6 +198,11 @@ class AirtimeInstall {
|
||||
@exec($command);
|
||||
}
|
||||
|
||||
public static function RemovePythonPackages(){
|
||||
$command = "pip uninstall poster";
|
||||
@exec($command);
|
||||
}
|
||||
|
||||
public static function DeleteFilesRecursive($p_path)
|
||||
{
|
||||
$command = "rm -rf $p_path";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user