2d879f6b |
%{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} |
542ebb04 |
Name: python-pip |
7404bf19 |
Version: 18.0
Release: 1%{?dist} |
542ebb04 |
Url: https://pypi.python.org/pypi/pip
Summary: The PyPA recommended tool for installing Python packages.
License: MIT
Group: Development/Languages/Python
Vendor: VMware, Inc.
Distribution: Photon |
71c203c4 |
Source0: https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-%{version}.tar.gz |
7404bf19 |
%define sha1 pip=337f4694bfcd4d698d9b02b38a7520fabc42a1d9 |
71c203c4 |
# To get tests:
# git clone https://github.com/pypa/pip && cd pip
# git checkout 9.0.1 && tar -czvf ../pip-tests-9.0.1.tar.gz tests/
Source1: pip-tests-%{version}.tar.gz |
7404bf19 |
%define sha1 pip-tests=f469fa967798bbae82039151e93d696bc2abfd87 |
542ebb04 |
BuildRequires: python2
BuildRequires: python2-libs
BuildRequires: python-setuptools |
71c203c4 |
%if %{with_check}
BuildRequires: mercurial
%endif |
542ebb04 |
Requires: python2
Requires: python2-libs |
45510cec |
Requires: python-setuptools |
c4bf6998 |
Requires: python-xml |
542ebb04 |
|
421d1f6b |
BuildArch: noarch
|
542ebb04 |
%description
The PyPA recommended tool for installing Python packages.
%prep
%setup -q -n pip-%{version} |
71c203c4 |
tar -xf %{SOURCE1} |
542ebb04 |
%build |
2d879f6b |
python2 setup.py build |
542ebb04 |
%install |
2d879f6b |
python2 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
542ebb04 |
|
64ab4af5 |
%check |
71c203c4 |
easy_install_2=$(ls /usr/bin |grep easy_install |grep 2) |
09ca2528 |
$easy_install_2 freezegun mock pretend virtualenv scripttest pytest pytest-capturelog |
71c203c4 |
#Disabled svn, bazaar, git related tests
#Disabled non_local_distutils test
PYTHONPATH=%{buildroot}%{python2_sitelib} py.test -m 'not network' -k 'not svn and not bazaar and not bzr and not git and not non_local_distutils' |
64ab4af5 |
|
542ebb04 |
%files
%defattr(-,root,root) |
2d879f6b |
%{python2_sitelib}/* |
542ebb04 |
%{_bindir}/*
%changelog |
7404bf19 |
* Sun Sep 09 2018 Tapas Kundu <tkundu@vmware.com> 18.0-1
- Update to version 18.0 |
71c203c4 |
* Thu Jul 20 2017 Divya Thaluru <dthaluru@vmware.com> 9.0.1-6
- Fixed make check errors |
2d879f6b |
* Thu Jun 15 2017 Dheeraj Shetty <dheerajs@vmware.com> 9.0.1-5
- Use python2 explicitly |
c4bf6998 |
* Wed Jun 07 2017 Xiaolin Li <xiaolinl@vmware.com> 9.0.1-4
- Add python-xml to requires. |
421d1f6b |
* Tue Apr 25 2017 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 9.0.1-3
- Fix arch |
45510cec |
* Tue Apr 11 2017 Xiaolin Li <xiaolinl@vmware.com> 9.0.1-2
- Added python-setuptools to requires. |
bfd9864f |
* Thu Mar 30 2017 Sarah Choi <sarahc@vmware.com> 9.0.1-1
- Upgrade version to 9.0.1 |
542ebb04 |
* Fri Sep 2 2016 Xiaolin Li <xiaolinl@vmware.com> 8.1.2-1 |
b72ab11f |
- Initial packaging for Photon |