diff --git a/specs/python-pip/SOURCES/allow-stripping-given-prefix-from-wheel-RECORD-files.patch b/specs/python-pip/SOURCES/allow-stripping-given-prefix-from-wheel-RECORD-files.patch deleted file mode 100644 index c8230a845..000000000 --- a/specs/python-pip/SOURCES/allow-stripping-given-prefix-from-wheel-RECORD-files.patch +++ /dev/null @@ -1,87 +0,0 @@ -diff -urN pip-18.1-orig/src/pip/_internal/commands/install.py pip-18.1/src/pip/_internal/commands/install.py ---- pip-18.1-orig/src/pip/_internal/commands/install.py 2018-10-05 12:07:26.000000000 +0300 -+++ pip-18.1/src/pip/_internal/commands/install.py 2019-10-01 14:04:29.000000000 +0300 -@@ -115,6 +115,13 @@ - default=None, - help="Installation prefix where lib, bin and other top-level " - "folders are placed") -+ cmd_opts.add_option( -+ '--strip-file-prefix', -+ dest='strip_file_prefix', -+ metavar='prefix', -+ default=None, -+ help="Strip given prefix from script paths in wheel RECORD." -+ ) - - cmd_opts.add_option(cmdoptions.build_dir()) - -@@ -364,6 +371,7 @@ - pycompile=options.compile, - warn_script_location=warn_script_location, - use_user_site=options.use_user_site, -+ strip_file_prefix=options.strip_file_prefix, - ) - - lib_locations = get_lib_location_guesses( -diff -urN pip-18.1-orig/src/pip/_internal/req/req_install.py pip-18.1/src/pip/_internal/req/req_install.py ---- pip-18.1-orig/src/pip/_internal/req/req_install.py 2018-10-05 12:07:26.000000000 +0300 -+++ pip-18.1/src/pip/_internal/req/req_install.py 2019-10-01 12:36:48.000000000 +0300 -@@ -370,7 +370,7 @@ - - def move_wheel_files(self, wheeldir, root=None, home=None, prefix=None, - warn_script_location=True, use_user_site=False, -- pycompile=True): -+ pycompile=True, strip_file_prefix=None): - move_wheel_files( - self.name, self.req, wheeldir, - user=use_user_site, -@@ -380,6 +380,7 @@ - pycompile=pycompile, - isolated=self.isolated, - warn_script_location=warn_script_location, -+ strip_file_prefix=strip_file_prefix, - ) - - # Things valid for sdists -@@ -743,7 +744,7 @@ - - def install(self, install_options, global_options=None, root=None, - home=None, prefix=None, warn_script_location=True, -- use_user_site=False, pycompile=True): -+ use_user_site=False, pycompile=True, strip_file_prefix=None): - global_options = global_options if global_options is not None else [] - if self.editable: - self.install_editable( -@@ -758,6 +759,7 @@ - self.source_dir, root=root, prefix=prefix, home=home, - warn_script_location=warn_script_location, - use_user_site=use_user_site, pycompile=pycompile, -+ strip_file_prefix=strip_file_prefix, - ) - self.install_succeeded = True - return -diff -urN pip-18.1-orig/src/pip/_internal/wheel.py pip-18.1/src/pip/_internal/wheel.py ---- pip-18.1-orig/src/pip/_internal/wheel.py 2018-10-05 12:07:26.000000000 +0300 -+++ pip-18.1/src/pip/_internal/wheel.py 2019-10-01 12:42:14.000000000 +0300 -@@ -206,7 +206,7 @@ - - def move_wheel_files(name, req, wheeldir, user=False, home=None, root=None, - pycompile=True, scheme=None, isolated=False, prefix=None, -- warn_script_location=True): -+ warn_script_location=True, strip_file_prefix=None): - """Install a wheel""" - - if not scheme: -@@ -508,7 +508,11 @@ - outrows.append(tuple(row)) - for f in generated: - digest, length = rehash(f) -- outrows.append((normpath(f, lib_dir), digest, length)) -+ final_path = normpath(f, lib_dir) -+ if strip_file_prefix and final_path.startswith(strip_file_prefix): -+ final_path = os.path.join(os.sep, -+ os.path.relpath(final_path, strip_file_prefix)) -+ outrows.append((final_path, digest, length)) - for f in installed: - outrows.append((installed[f], '', '')) - for row in sorted(outrows): diff --git a/specs/python-pip/python-pip.spec b/specs/python-pip/python-pip.spec deleted file mode 100644 index f91fbbbda..000000000 --- a/specs/python-pip/python-pip.spec +++ /dev/null @@ -1,122 +0,0 @@ -################################################################################ - -%define _posixroot / -%define _root /root -%define _bin /bin -%define _sbin /sbin -%define _srv /srv -%define _lib32 %{_posixroot}lib -%define _lib64 %{_posixroot}lib64 -%define _libdir32 %{_prefix}%{_lib32} -%define _libdir64 %{_prefix}%{_lib64} -%define _logdir %{_localstatedir}/log -%define _rundir %{_localstatedir}/run -%define _lockdir %{_localstatedir}/lock -%define _cachedir %{_localstatedir}/cache -%define _loc_prefix %{_prefix}/local -%define _loc_exec_prefix %{_loc_prefix} -%define _loc_bindir %{_loc_exec_prefix}/bin -%define _loc_libdir %{_loc_exec_prefix}/%{_lib} -%define _loc_libdir32 %{_loc_exec_prefix}/%{_lib32} -%define _loc_libdir64 %{_loc_exec_prefix}/%{_lib64} -%define _loc_libexecdir %{_loc_exec_prefix}/libexec -%define _loc_sbindir %{_loc_exec_prefix}/sbin -%define _loc_bindir %{_loc_exec_prefix}/bin -%define _loc_datarootdir %{_loc_prefix}/share -%define _loc_includedir %{_loc_prefix}/include -%define _rpmstatedir %{_sharedstatedir}/rpm-state - -################################################################################ - -%define pkgname pip - -################################################################################ - -Summary: Tool for installing and managing Python packages -Name: python-%{pkgname} -Version: 9.0.3 -Release: 0%{?dist} -License: MIT -Group: Development/Tools -URL: https://github.com/pypa/pip - -Source0: https://github.com/pypa/%{pkgname}/archive/%{version}.tar.gz - -BuildArch: noarch - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -BuildRequires: python-setuptools python-devel - -Requires: python-setuptools python-devel - -Provides: pip = %{version}-%{release} -Provides: %{name} = %{version}-%{release} -Provides: python2-%{pkgname} = %{version}-%{release} - -################################################################################ - -%description -pip is a tool for installing and managing Python packages, such as those found -in the Python Package Index. It’s a replacement for easy_install. - -################################################################################ - -%prep -%setup -qn %{pkgname}-%{version} - -sed -i '1d' %{pkgname}/__init__.py - -%build -python setup.py build - -%install -rm -rf %{buildroot} - -python setup.py install -O1 --skip-build --root %{buildroot} - -rm -rf %{buildroot}%{_bindir}/%{pkgname}-* - -%clean -rm -rf %{buildroot} - -################################################################################ - -%files -%defattr(-, root, root, -) -%doc docs AUTHORS.txt CHANGES.txt LICENSE.txt MANIFEST.in README.rst -%attr(755, root, root) %{_bindir}/%{pkgname}* -%{python_sitelib}/%{pkgname}* - -################################################################################ - -%changelog -* Tue Jun 19 2018 Anton Novojilov - 9.0.3-0 -- Fix an error where the vendored requests was not correctly containing itself - to only the internal vendored prefix. -- Restore compatibility with 2.6. - -* Wed Nov 09 2016 Anton Novojilov - 9.0.1-0 -- Correct the deprecation message when not specifying a --format so that it - uses the correct setting name (format) rather than the incorrect one - (list_format). -- Fix "pip check" to check all available distributions and not just the - local ones. -- Fix a crash on non ASCII characters from lsb_release. -- Fix an SyntaxError in an an used module of a vendored dependency. -- Fix UNC paths on Windows. - -* Sun Jun 19 2016 Anton Novojilov - 8.1.2-0 -- Fix a regression on systems with uninitialized locale. -- Use environment markers to filter packages before determining if a - required wheel is supported. -- Make glibc parsing for `manylinux1` support more robust for the variety of - glibc versions found in the wild. -- Update environment marker support to fully support PEP 508 and legacy - environment markers. -- Always use debug logging to the ``--log`` file. -- Don't attempt to wrap search results for extremely narrow terminal windows. - -* Sun Mar 20 2016 Gleb Goncharov - 8.1.1-0 -- Fix regression with non-ascii requirement files on Python 2 and add support - for encoding headers in requirement files. diff --git a/specs/python-pip/python3-pip.spec b/specs/python-pip/python3-pip.spec deleted file mode 100644 index 33a6915e2..000000000 --- a/specs/python-pip/python3-pip.spec +++ /dev/null @@ -1,184 +0,0 @@ -################################################################################ - -%global crc_check pushd ../SOURCES ; sha512sum -c %{SOURCE100} ; popd - -################################################################################ - -%global python_base python36 -%global __python3 %{_bindir}/python3.6 - -%global pythonver %(%{__python3} -c "import sys; print sys.version[:3]" 2>/dev/null || echo 0.0) -%{!?python3_sitearch: %global python3_sitearch %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)" 2>/dev/null)} -%{!?python3_sitelib: %global python3_sitelib %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()" 2>/dev/null)} - -################################################################################ - -%define _posixroot / -%define _root /root -%define _bin /bin -%define _sbin /sbin -%define _srv /srv -%define _lib32 %{_posixroot}lib -%define _lib64 %{_posixroot}lib64 -%define _libdir32 %{_prefix}%{_lib32} -%define _libdir64 %{_prefix}%{_lib64} -%define _logdir %{_localstatedir}/log -%define _rundir %{_localstatedir}/run -%define _lockdir %{_localstatedir}/lock -%define _cachedir %{_localstatedir}/cache -%define _loc_prefix %{_prefix}/local -%define _loc_exec_prefix %{_loc_prefix} -%define _loc_bindir %{_loc_exec_prefix}/bin -%define _loc_libdir %{_loc_exec_prefix}/%{_lib} -%define _loc_libdir32 %{_loc_exec_prefix}/%{_lib32} -%define _loc_libdir64 %{_loc_exec_prefix}/%{_lib64} -%define _loc_libexecdir %{_loc_exec_prefix}/libexec -%define _loc_sbindir %{_loc_exec_prefix}/sbin -%define _loc_bindir %{_loc_exec_prefix}/bin -%define _loc_datarootdir %{_loc_prefix}/share -%define _loc_includedir %{_loc_prefix}/include -%define _rpmstatedir %{_sharedstatedir}/rpm-state - -################################################################################ - -%define pkgname pip - -%define python_wheelname %{pkgname}-%{version}-py3-none-any.whl -%define python_wheeldir %{_datadir}/python-wheels - -################################################################################ - -Summary: Tool for installing and managing Python packages -Name: %{python_base}-%{pkgname} -Version: 21.3.1 -Release: 0%{?dist} -License: MIT -Group: Development/Tools -URL: https://github.com/pypa/pip - -Source0: https://github.com/pypa/%{pkgname}/archive/%{version}.tar.gz - -Source100: checksum.sha512 - -BuildArch: noarch - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -BuildRequires: %{python_base}-setuptools %{python_base}-devel - -Requires: %{python_base}-setuptools %{python_base}-devel - -Provides: pip3 = %{version}-%{release} -Provides: python3-pip = %{version}-%{release} -Provides: %{name} = %{version}-%{release} - -################################################################################ - -%description -pip is a tool for installing and managing Python packages, such as those found -in the Python Package Index. It’s a replacement for easy_install. - -################################################################################ - -%package wheel -Summary: The pip wheel - -Group: Development/Tools - -BuildRequires: %{python_base}-pip %{python_base}-wheel - -Requires: %{python_base}-%{pkgname} = %{version} -Requires: ca-certificates - -%description wheel -A Python wheel of pip to use with venv. - -################################################################################ - -%prep -%{crc_check} - -%setup -qn %{pkgname}-%{version} - -# Remove Windows binaries -rm -f -v src/pip/_vendor/distlib/*.exe -sed -i '/\.exe/d' setup.py - -%build -%{__python3} setup.py bdist_wheel - -%install -rm -rf %{buildroot} - -%{__python3} setup.py install -O1 --skip-build --root %{buildroot} - -rm -rf %{buildroot}%{_bindir}/%{pkgname}-* - -pip3 install -I dist/%{python_wheelname} \ - --root %{buildroot} \ - --no-index \ - --no-deps \ - --no-cache-dir \ - --no-warn-script-location \ - --disable-pip-version-check \ - --ignore-installed \ - --find-links dist \ - --verbose - -mkdir -p %{buildroot}%{python_wheeldir} -install -p dist/%{python_wheelname} -t %{buildroot}%{python_wheeldir} - -%clean -rm -rf %{buildroot} - -################################################################################ - -%files -%defattr(-, root, root, -) -%doc docs AUTHORS.txt LICENSE.txt MANIFEST.in README.rst -%attr(755, root, root) %{_bindir}/%{pkgname}* -%{python3_sitelib}/%{pkgname}* - -%files wheel -%defattr(-, root, root, -) -%{python_wheeldir}/%{python_wheelname} - -################################################################################ - -%changelog -* Mon Oct 24 2022 Anton Novojilov - 21.3.1-0 -https://pip.pypa.io/en/stable/news/#v21-3-1 - -* Tue Oct 01 2019 Anton Novojilov - 18.1-3 -- Added patch for stripping prefix from script paths in wheel RECORD -- Added wheel package for CentOS 7 - -* Thu Sep 19 2019 Anton Novojilov - 18.1-2 -- Fixed compatibility with the latest version of Python 3 package - -* Thu Apr 11 2019 Anton Novojilov - 18.1-1 -- Updated for compatibility with Python 3.6 - -* Wed Nov 28 2018 Anton Novojilov - 18.1-0 -- https://pip.pypa.io/en/stable/news/#v18-1 - -* Wed Sep 12 2018 Anton Novojilov - 18.0-0 -- https://pip.pypa.io/en/stable/news/#v18-0 - -* Tue Jun 19 2018 Anton Novojilov - 10.0.1-0 -- https://pip.pypa.io/en/stable/news/#v10-0-1 - -* Tue Jun 19 2018 Anton Novojilov - 10.0.0-0 -- https://pip.pypa.io/en/stable/news/#v10-0-0 - -* Tue Jun 19 2018 Anton Novojilov - 9.0.3-0 -- https://pip.pypa.io/en/stable/news/#v9-0-3 - -* Wed Nov 09 2016 Anton Novojilov - 9.0.1-0 -- https://pip.pypa.io/en/stable/news/#v9-0-1 - -* Sun Jun 19 2016 Anton Novojilov - 8.1.2-0 -- https://pip.pypa.io/en/stable/news/#v8-1-2 - -* Sun Mar 20 2016 Gleb Goncharov - 8.1.1-0 -- https://pip.pypa.io/en/stable/news/#v8-1-1 diff --git a/tests/python-pip/python-pip3-el7.recipe b/tests/python-pip/python-pip3-el7.recipe deleted file mode 100644 index 5696e80df..000000000 --- a/tests/python-pip/python-pip3-el7.recipe +++ /dev/null @@ -1,39 +0,0 @@ -# Bibop recipe for PIP3 for CentOS 7 -# See more: https://kaos.sh/bibop - -pkg python36-pip - -require-root yes - -command "-" "Check environment" - app pip - app pip3 - -command "-" "Check Python 3 installation" - exist {PYTHON3_SITELIB}/pip - dir {PYTHON3_SITELIB}/pip - !empty-dir {PYTHON3_SITELIB}/pip - -command "pip --version" "Check version" - wait-output 5 - output-contains "site-packages/pip" - output-contains "python 3" - -command "python3 -Im ensurepip" "Check ensurepip command" - exit 0 - -command "pip3 install youtube-dl" "Install youtube-dl" - exit 0 - app youtube-dl - exist {PYTHON3_SITELIB_LOCAL}/youtube_dl - dir {PYTHON3_SITELIB_LOCAL}/youtube_dl - !empty-dir {PYTHON3_SITELIB_LOCAL}/youtube_dl - -command "pip3 list" "Check package listing" - exit 0 - output-match "youtube\-dl +\d+\.\d+\.\d+" - -command "pip3 uninstall -y youtube-dl" "Unistall youtube-dl" - exit 0 - !app youtube-dl - !exist {PYTHON3_SITELIB_LOCAL}/youtube_dl