Skip to content

Commit 5ff2b2e

Browse files
committed
Update from distutils to setuptools
1 parent 90807b9 commit 5ff2b2e

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

rpm/osg-pki-tools.spec

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Summary: osg-pki-tools
22
Name: osg-pki-tools
3-
Version: 3.7.2
3+
Version: 3.7.3
44
Release: 1%{?dist}
55
Source: osg-pki-tools-%{version}.tar.gz
66
License: Apache 2.0
@@ -11,7 +11,10 @@ BuildArch: noarch
1111
%global __python %{__python3}
1212

1313
BuildRequires: python3
14+
BuildRequires: python3-pip
1415
BuildRequires: python3-devel
16+
BuildRequires: python3-setuptools
17+
BuildRequires: python3-wheel
1518

1619
Requires: python3-m2crypto
1720
Requires: python3-urllib3
@@ -28,8 +31,8 @@ Requires: python3-urllib3
2831
find . -type f -exec \
2932
sed -ri '1s,^#!\s*(/usr)?/bin/(env *)?python.*,#!%{__python},' '{}' +
3033

31-
%{__python} setup.py install --root=%{buildroot}
32-
rm -f %{buildroot}%{python_sitelib}/*.egg-info
34+
%{__python} -m pip install . --root=%{buildroot}
35+
rm -rf %{buildroot}%{python_sitelib}/*.egg-info
3336
mkdir -p %{buildroot}%{_datadir}/man/man1
3437
gzip -c man/osg-incommon-cert-request.1 >%{buildroot}%{_datadir}/man/man1/osg-incommon-cert-request.1.gz
3538

@@ -38,12 +41,16 @@ mv %{buildroot}/%{_prefix}/config/ca-issuer.conf %{buildroot}%{_sysconfdir}/osg/
3841

3942
%files
4043
%{python3_sitelib}/osgpkitools
44+
%{python3_sitelib}/osg_pki_tools*.dist-info/*
4145
%{_bindir}/osg-cert-request
4246
%{_bindir}/osg-incommon-cert-request
4347
%{_datadir}/man/man1/osg-incommon-cert-request*
4448
%config(noreplace) %{_sysconfdir}/osg/pki/ca-issuer.conf
4549

4650
%changelog
51+
* Mon Sep 08 2025 Matt Westphall <[email protected]> - 3.7.3
52+
- Initial OSG 25 release; switch from distutils to setuptools-based intstall
53+
4754
* Fri Mar 7 2025 Dave Dykstra <[email protected]> - 3.7.2
4855
- Fix bug in invocation of urllib3.request() in restclient's get_request();
4956
it was passing headers as the 4th parameter instead of identifying it

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from distutils.core import setup
1+
from setuptools import setup
22

33
from osgpkitools import utils
44

0 commit comments

Comments
 (0)