14
0

- Update to version 2.1:

* Issue #129: Suppress inspection of '*.whl' files when searching for files
    in a zip-imported file.
  * Issue #131: Fix RuntimeError when constructing an egg fetcher.
- Changes from version 2.0.2:
  * Fix NameError during installation with Python implementations (e.g. Jython)
    not containing parser module.
  * Fix NameError in sdist:re_finder.
- Changes from version 2.0.1:
  * Issue #124: Fixed error in list detection in upload_docs.
- Changes from version 2.0:
  * Issue #121: Exempt lib2to3 pickled grammars from DirectorySandbox.
  * Issue #41: Dropped support for Python 2.4 and Python 2.5. Clients requiring
    setuptools for those versions of Python should use setuptools 1.x.
  * Removed setuptools.command.easy_install.HAS_USER_SITE. Clients
    expecting this boolean variable should use site.ENABLE_USER_SITE
    instead.
  * Removed pkg_resources.ImpWrapper. Clients that expected this class
    should use pkgutil.ImpImporter instead.
- Changes from version 1.4.2:
  * Issue #116: Correct TypeError when reading a local package index on Python
    3.
- Changes from version 1.4.1:
  * Issue #114: Use sys.getfilesystemencoding for decoding config in
    bdist_wininst distributions.
  * Issue #105 and Issue #113: Establish a more robust technique for
    determining the terminal encoding
- Changes from version 1.4:
  * Issue #27: easy_install will now use credentials from .pypirc if
    present for connecting to the package index.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=56
This commit is contained in:
Sascha Peilicke
2014-02-10 14:53:17 +00:00
committed by Git OBS Bridge
parent 8e32545cab
commit d7f28b9d11
4 changed files with 93 additions and 29 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-setuptools
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
Name: python-setuptools
Version: 1.1.7
Version: 2.1
Release: 0
Url: http://pypi.python.org/pypi/setuptools
Summary: Easily download, build, install, upgrade, and uninstall Python packages
@@ -29,10 +29,12 @@ Source2: zpl.txt
Patch1: setuptools-0.6c9-create-sitedir.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-xml
# needed for SLE
Requires: python
Requires: python-xml
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires(preun): update-alternatives
# NOTE(saschpe): Distribute was merged into 0.7.x, so even though distribute
# obsoletes setuptools < 0.6.45, current setuptools obsoletes distribute again
Provides: python-distribute = %{version}
@@ -59,17 +61,13 @@ python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
rm %{buildroot}%{_bindir}/easy_install
ln -s %{_bindir}/easy_install-%{py_ver} %{buildroot}%{_bindir}/easy_install
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
touch %{buildroot}%{_sysconfdir}/alternatives/easy_install
ln -sf %{_sysconfdir}/alternatives/easy_install %{buildroot}/%{_bindir}/easy_install
%check
python setup.py test
%pre
# Since /usr/bin/easy_install became ghosted to be used with update-alternatives,
# we have to get rid of the old binary:
[[ ! -L %{_bindir}/easy_install ]] && rm -f %{_bindir}/easy_install
exit 0
%post
update-alternatives \
--install %{_bindir}/easy_install easy_install %{_bindir}/easy_install-%{py_ver} 20
@@ -82,12 +80,13 @@ fi
%files
%defattr(-,root,root,-)
%doc CHANGES.txt README.txt
%ghost %{_bindir}/easy_install
%{_bindir}/easy_install
%{_bindir}/easy_install-%{py_ver}
%ghost %{_sysconfdir}/alternatives/easy_install
%{python_sitelib}/_markerlib
%{python_sitelib}/setuptools
%{python_sitelib}/setuptools-%{version}-py%{py_ver}.egg-info
%python_sitelib/easy_install.py*
%python_sitelib/pkg_resources.py*
%{python_sitelib}/easy_install.py*
%{python_sitelib}/pkg_resources.py*
%changelog