Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:illuusio:buildbot-worker
python-setuptools
python-setuptools.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-setuptools.spec of Package python-setuptools
# # spec file for package python-setuptools # # Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %global srcname setuptools %global _description \ Setuptools is a collection of enhancements to the Python distutils that allow \ you to more easily build and distribute Python packages, especially ones that \ have dependencies on other packages. \ \ This package also contains the runtime components of setuptools, necessary to \ execute the software that requires pkg_resources.py. # WARNING When bootstrapping, disable tests as well, # because tests need pip. %bcond_with bootstrap %bcond_without tests # Note(hguemar): overrides must be placed *before* those # Otherwise it doesn't work %bcond_without python3 %if %{without bootstrap} %global python_wheelname %{srcname}-%{version}-py2.py3-none-any.whl %global python3_wheelname %{python_wheelname} %global python3_record %{python3_sitelib}/%{srcname}-%{version}.dist-info/RECORD %global python3_wheeldir %{_datadir}/python3-wheels %endif # without bootstrap Name: python-setuptools Version: 51.3.3 Release: 0 Summary: Easily build and distribute Python packages License: MIT # FIXME: use correct group or remove it, see "https://en.opensuse.org/openSUSE:Package_group_guidelines" Group: Applications/System URL: https://pypi.python.org/pypi/%{srcname} Source0: https://files.pythonhosted.org/packages/source/s/%{srcname}/%{srcname}-%{version}.tar.gz # In Fedora, sudo setup.py install installs to /usr/local/lib/pythonX.Y/site-packages # But pythonX doesn't own that dir, that would be against FHS # We need to create it if it doesn't exist # https://bugzilla.redhat.com/show_bug.cgi?id=1576924 BuildRequires: gcc # We're now back to setuptools as the package. # Keep the python-distribute name active for a few releases. Eventually we'll # want to get rid of the Provides and just keep the Obsoletes Provides: python-distribute = %{version}-%{release} Obsoletes: python-distribute < 0.6.36-2 BuildArch: noarch BuildRequires: python3-devel #Test # BuildRequires: python3-mock # BuildRequires: python3-pip # BuildRequires: python3-pytest %if %{without bootstrap} BuildRequires: python3-pip %endif # without bootstrap endif %description %{_description} %package -n platform-python-setuptools Summary: Easily build and distribute Python 3 packages # FIXME: use correct group or remove it, see "https://en.opensuse.org/openSUSE:Package_group_guidelines" Group: Applications/System Conflicts: python3-setuptools < 39.2.0-4%{?dist} %description -n platform-python-setuptools %{_description} %package -n python3-setuptools %{?python_provide:%python_provide python3-setuptools} Summary: Easily build and distribute Python 3 packages # FIXME: use correct group or remove it, see "https://en.opensuse.org/openSUSE:Package_group_guidelines" Group: Applications/System Requires: platform-python-setuptools = %{version}-%{release} Requires: python3-packaging >= 20.0 %description -n python3-setuptools %{_description} %prep %autosetup -p1 -n %{srcname}-%{version} # We can't remove .egg-info (but it doesn't matter, since it'll be rebuilt): # The problem is that to properly execute setuptools' setup.py, # it is needed for setuptools to be loaded as a Distribution # (with egg-info or .dist-info dir), it's not sufficient # to just have them on PYTHONPATH # Running "setup.py install" without having setuptools installed # as a distribution gives warnings such as # ... distutils/dist.py:267: UserWarning: Unknown distribution option: 'entry_points' # and doesn't create "easy_install" and .egg-info directory # Note: this is only a problem if bootstrapping wheel or building on RHEL, # otherwise setuptools are installed as dependency into buildroot # Strip shbang find setuptools -name \*.py | xargs sed -i -e '1 {/^#!\//d}' # Remove bundled exes rm -f setuptools/*.exe # These tests require internet connection rm setuptools/tests/test_integration.py %build %py3_build %install %py3_install # TODO: we have to remove this by hand now, but it'd be nice if we wouldn't have to # (pip install wheel doesn't overwrite) rm %{buildroot}%{_bindir}/easy_install rm -rf %{buildroot}%{python3_sitelib}/setuptools/tests find %{buildroot}%{python3_sitelib} -name '*.exe' | xargs rm -f # Don't ship these rm -rf docs/{Makefile,conf.py,_*} %files -n python3-setuptools %license LICENSE %doc docs/* CHANGES.rst README.rst # The easy_install-3 binary is created using alternatives # defined in the python36 package %{_bindir}/easy_install-3.* %files -n platform-python-setuptools %license LICENSE %doc docs/* CHANGES.rst README.rst %{python3_sitelib}/easy_install.py %{python3_sitelib}/pkg_resources/ %{python3_sitelib}/setuptools*/ %{python3_sitelib}/__pycache__/* %{python3_sitelib}/_distutils_hack/* %{python3_sitelib}/distutils-precedence.pth %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor