sphinx-pre-install (ff36e78fdb251b9fa65028554689806961e011eb) sphinx-pre-install (c428cd52282dcc967b2a936d80f1eec4cb80d6d5)
1#!/usr/bin/perl
2# SPDX-License-Identifier: GPL-2.0-or-later
3use strict;
4
5# Copyright (c) 2017-2019 Mauro Carvalho Chehab <mchehab@kernel.org>
6#
7
8my $prefix = "./";

--- 687 unchanged lines hidden (view full) ---

696 if ($need_sphinx && scalar @activates > 0 && $activates[0] ge $min_activate) {
697 printf "\nNeed to activate a compatible Sphinx version on virtualenv with:\n";
698 printf "\t. $activates[0]\n";
699 deactivate_help();
700 exit (1);
701 } else {
702 my $rec_activate = "$virtenv_dir/bin/activate";
703 my $virtualenv = findprog("virtualenv-3");
1#!/usr/bin/perl
2# SPDX-License-Identifier: GPL-2.0-or-later
3use strict;
4
5# Copyright (c) 2017-2019 Mauro Carvalho Chehab <mchehab@kernel.org>
6#
7
8my $prefix = "./";

--- 687 unchanged lines hidden (view full) ---

696 if ($need_sphinx && scalar @activates > 0 && $activates[0] ge $min_activate) {
697 printf "\nNeed to activate a compatible Sphinx version on virtualenv with:\n";
698 printf "\t. $activates[0]\n";
699 deactivate_help();
700 exit (1);
701 } else {
702 my $rec_activate = "$virtenv_dir/bin/activate";
703 my $virtualenv = findprog("virtualenv-3");
704 my $rec_python3 = "";
704 $virtualenv = findprog("virtualenv-3.5") if (!$virtualenv);
705 $virtualenv = findprog("virtualenv") if (!$virtualenv);
706 $virtualenv = "virtualenv" if (!$virtualenv);
707
705 $virtualenv = findprog("virtualenv-3.5") if (!$virtualenv);
706 $virtualenv = findprog("virtualenv") if (!$virtualenv);
707 $virtualenv = "virtualenv" if (!$virtualenv);
708
708 printf "\t$virtualenv $virtenv_dir\n";
709 my $rel = "";
710 if (index($system_release, "Ubuntu") != -1) {
711 $rel = $1 if ($system_release =~ /Ubuntu\s+(\d+)[.]/);
712 if ($rel && $rel >= 16) {
713 $rec_python3 = " -p python3";
714 }
715 }
716 if (index($system_release, "Debian") != -1) {
717 $rel = $1 if ($system_release =~ /Debian\s+(\d+)/);
718 if ($rel && $rel >= 7) {
719 $rec_python3 = " -p python3";
720 }
721 }
722
723 printf "\t$virtualenv$rec_python3 $virtenv_dir\n";
709 printf "\t. $rec_activate\n";
710 printf "\tpip install -r $requirement_file\n";
711 deactivate_help();
712
713 $need++ if (!$rec_sphinx_upgrade);
714 }
715 }
716 printf "\n";

--- 55 unchanged lines hidden ---
724 printf "\t. $rec_activate\n";
725 printf "\tpip install -r $requirement_file\n";
726 deactivate_help();
727
728 $need++ if (!$rec_sphinx_upgrade);
729 }
730 }
731 printf "\n";

--- 55 unchanged lines hidden ---