#67 Do not emit a warning about root privileges when --root is used
Merged 3 years ago by churchyard. Opened 3 years ago by lbalhar.
rpms/ lbalhar/python-pip master  into  master

@@ -33,7 +33,7 @@ 

  +                     sys.base_prefix != sys.prefix))

  +

  +        # Check whether we have root privileges and aren't in venv/virtualenv

- +        if os.getuid() == 0 and not is_venv():

+ +        if os.getuid() == 0 and not is_venv() and not options.root_path:

  +            command = path.basename(sys.argv[0])

  +            if command == "__main__.py":

  +                command = path.basename(sys.executable) + " -m pip"

file modified
+4 -1
@@ -18,7 +18,7 @@ 

  # When updating, update the bundled libraries versions bellow!

  # You can use vendor_meta.sh in the dist git repo

  Version:        %{base_version}%{?prerel:~%{prerel}}

- Release:        5%{?dist}

+ Release:        6%{?dist}

  Summary:        A tool for installing and managing Python packages

  

  # We bundle a lot of libraries with pip, which itself is under MIT license.
@@ -405,6 +405,9 @@ 

  %{python_wheeldir}/%{python_wheelname}

  

  %changelog

+ * Fri Jul 10 2020 Lumír Balhar <lbalhar@redhat.com> - 20.1.1-6

+ - Do not emit a warning about root privileges when --root is used

+ 

  * Wed Jul 08 2020 Miro Hrončok <mhroncok@redhat.com> - 20.1.1-5

  - Update bundled provides to match 20.1.1