upgrade version to 54.2.0
This commit is contained in:
parent
9dbba46ba8
commit
b20f0ea359
@ -1,17 +0,0 @@
|
|||||||
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
|
|
||||||
index 91c48b3..0c9b0f4 100755
|
|
||||||
--- a/setuptools/command/easy_install.py
|
|
||||||
+++ b/setuptools/command/easy_install.py
|
|
||||||
@@ -446,6 +446,12 @@ class easy_install(Command):
|
|
||||||
instdir = normalize_path(self.install_dir)
|
|
||||||
pth_file = os.path.join(instdir, 'easy-install.pth')
|
|
||||||
|
|
||||||
+ if not os.path.exists(instdir):
|
|
||||||
+ try:
|
|
||||||
+ os.makedirs(instdir)
|
|
||||||
+ except (OSError, IOError):
|
|
||||||
+ self.cant_write_to_target()
|
|
||||||
+
|
|
||||||
# Is it a configured, PYTHONPATH, implicit, or explicit site dir?
|
|
||||||
is_site_dir = instdir in self.all_site_dirs
|
|
||||||
|
|
||||||
@ -3,17 +3,16 @@
|
|||||||
%global python3_record %{python3_sitelib}/setuptools-%{version}.dist-info/RECORD
|
%global python3_record %{python3_sitelib}/setuptools-%{version}.dist-info/RECORD
|
||||||
|
|
||||||
%global python_whldir %{_datadir}/python-wheels
|
%global python_whldir %{_datadir}/python-wheels
|
||||||
%global python_whlname setuptools-%{version}-py2.py3-none-any.whl
|
%global python_whlname setuptools-%{version}-py3-none-any.whl
|
||||||
|
|
||||||
Name: python-setuptools
|
Name: python-setuptools
|
||||||
Version: 44.1.1
|
Version: 54.2.0
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: Easily build and distribute Python packages
|
Summary: Easily build and distribute Python packages
|
||||||
|
|
||||||
License: MIT and (BSD or ASL 2.0)
|
License: MIT and (BSD or ASL 2.0)
|
||||||
URL: https://pypi.python.org/pypi/setuptools
|
URL: https://pypi.python.org/pypi/setuptools
|
||||||
Source0: %{pypi_source setuptools %{version} zip}
|
Source0: %{pypi_source setuptools %{version}}
|
||||||
Patch0: create-site-packages.patch
|
|
||||||
Patch9000: bugfix-eliminate-random-order-in-metadata.patch
|
Patch9000: bugfix-eliminate-random-order-in-metadata.patch
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -64,12 +63,11 @@ chmod -x README.rst
|
|||||||
%install
|
%install
|
||||||
%py3_install_wheel %{python_whlname}
|
%py3_install_wheel %{python_whlname}
|
||||||
sed -i '/\/usr\/bin\/easy_install,/d' %{buildroot}%{python3_record}
|
sed -i '/\/usr\/bin\/easy_install,/d' %{buildroot}%{python3_record}
|
||||||
rm %{buildroot}%{_bindir}/easy_install
|
rm -rf %{buildroot}%{python3_sitelib}/{setuptools, pkg_resources}/tests
|
||||||
rm -rf %{buildroot}%{python3_sitelib}/setuptools/tests
|
|
||||||
sed -i '/^setuptools\/tests\//d' %{buildroot}%{python3_record}
|
sed -i '/^setuptools\/tests\//d' %{buildroot}%{python3_record}
|
||||||
find %{buildroot}%{python3_sitelib} -name '*.exe' | xargs rm -f
|
find %{buildroot}%{python3_sitelib} -name '*.exe' | xargs rm -f
|
||||||
|
|
||||||
rm -r docs/{Makefile,conf.py,_*}
|
rm -r docs/{conf.py,_*}
|
||||||
mkdir -p %{buildroot}%{python_whldir}
|
mkdir -p %{buildroot}%{python_whldir}
|
||||||
install -p dist/%{python_whlname} -t %{buildroot}%{python_whldir}
|
install -p dist/%{python_whlname} -t %{buildroot}%{python_whldir}
|
||||||
|
|
||||||
@ -86,11 +84,10 @@ PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=$(pwd) py.test-%{python3_version} --ignore=
|
|||||||
|
|
||||||
%files -n python3-setuptools
|
%files -n python3-setuptools
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_bindir}/easy_install-3.*
|
|
||||||
%{python3_sitelib}/easy_install.py
|
|
||||||
%{python3_sitelib}/pkg_resources/
|
%{python3_sitelib}/pkg_resources/
|
||||||
%{python3_sitelib}/setuptools*/
|
%{python3_sitelib}/setuptools*/
|
||||||
%{python3_sitelib}/__pycache__/*
|
%{python3_sitelib}/distutils-precedence.pth
|
||||||
|
%{python3_sitelib}/_distutils_hack/
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -98,6 +95,9 @@ PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=$(pwd) py.test-%{python3_version} --ignore=
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Mar 29 2021 shixuantong<shixuantong@huawei.com> - 54.2.0-1
|
||||||
|
- upgrade version to 54.2.0
|
||||||
|
|
||||||
* Mon Nov 2 2020 wangjie<wangjie294@huawei.com> -44.1.1-2
|
* Mon Nov 2 2020 wangjie<wangjie294@huawei.com> -44.1.1-2
|
||||||
- Type:NA
|
- Type:NA
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Binary file not shown.
BIN
setuptools-54.2.0.tar.gz
Normal file
BIN
setuptools-54.2.0.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user