Skip to content

Commit a42ddb0

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

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

rpm/osg-pki-tools.spec

Lines changed: 14 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,12 @@ 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+
# pyproject.toml causes pip to download additional dependencies - we don't want this
35+
rm -f ./pyproject.toml
36+
37+
%{__python} -m pip install . --root=%{buildroot}
38+
39+
rm -rf %{buildroot}%{python_sitelib}/*.egg-info
3340
mkdir -p %{buildroot}%{_datadir}/man/man1
3441
gzip -c man/osg-incommon-cert-request.1 >%{buildroot}%{_datadir}/man/man1/osg-incommon-cert-request.1.gz
3542

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

3946
%files
4047
%{python3_sitelib}/osgpkitools
48+
%{python3_sitelib}/osg_pki_tools*.dist-info/*
4149
%{_bindir}/osg-cert-request
4250
%{_bindir}/osg-incommon-cert-request
4351
%{_datadir}/man/man1/osg-incommon-cert-request*
4452
%config(noreplace) %{_sysconfdir}/osg/pki/ca-issuer.conf
4553

4654
%changelog
55+
* Mon Sep 08 2025 Matt Westphall <[email protected]> - 3.7.3
56+
- Initial OSG 25 release; switch from distutils to setuptools-based intstall
57+
4758
* Fri Mar 7 2025 Dave Dykstra <[email protected]> - 3.7.2
4859
- Fix bug in invocation of urllib3.request() in restclient's get_request();
4960
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)