Skip to content

Commit 5d29435

Browse files
committed
Changes migrate distutils to setuptools
1 parent 5050bfb commit 5d29435

File tree

3 files changed

+5
-17
lines changed

3 files changed

+5
-17
lines changed

appveyor.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,6 @@ environment:
205205
HOMEBREW_NO_INSTALL_CLEANUP: 1
206206
PYTHON_VERSION: 3.14
207207
TOXENV: py314
208-
- TARGET: linux-tox-py310
209-
BUILD_ENVIRONMENT: python-tox
210-
APPVEYOR_BUILD_WORKER_IMAGE: ubuntu2204
211-
PYTHON_VERSION: 3.10
212-
TOXENV: py310
213-
AUDITWHEEL_PLAT: manylinux_2_35_x86_64
214208
- TARGET: cygwin64-gcc
215209
BUILD_ENVIRONMENT: cygwin64
216210
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
@@ -267,7 +261,6 @@ install:
267261
- cmd: if [%BUILD_ENVIRONMENT%]==[python-tox] (
268262
"%PYTHON%" -m pip install -U tox twine )
269263
- sh: if test `uname -s` = "Darwin" && test ${BUILD_ENVIRONMENT} = "python-tox"; then brew install -q python@${PYTHON_VERSION} tox twine-pypi || true; fi
270-
- sh: if test `uname -s` = "Linux" && test ${BUILD_ENVIRONMENT} = "python-tox"; then sudo rm -f /etc/apt/sources.list.d/*llvm* /etc/apt/sources.list.d/*mongodb* /etc/apt/sources.list.d/*postgresql* /etc/apt/sources.list.d/*virtualbox* /etc/apt/sources.list.d/*yarnpkg* && sudo apt-get upgrade -y && sudo apt-get update -y --allow-releaseinfo-change && sudo apt-get -y install autoconf automake autopoint build-essential flex git libtool patchelf pkg-config python3 python3-dev python3-distutils python3-pip python3-setuptools tox && python3 -m pip install -U twine; fi
271264
- ps: If ($env:BUILD_ENVIRONMENT -eq "cygwin64") {
272265
(New-Object Net.WebClient).DownloadFile("https://cygwin.com/setup-x86_64.exe", "C:\\cygwin64\\setup-x86_64.exe") }
273266
- cmd: if [%BUILD_ENVIRONMENT%]==[cygwin64] (
@@ -293,7 +286,6 @@ build_script:
293286
- cmd: if [%BUILD_ENVIRONMENT%]==[python-tox] (
294287
"%PYTHON%" -m tox -e%TOXENV% )
295288
- sh: if test `uname -s` = "Darwin" && test ${BUILD_ENVIRONMENT} = "python-tox"; then export PATH="/usr/local/opt/gettext/bin:$PATH"; export SED="/usr/local/bin/gsed"; ./synclibs.sh && ./autogen.sh && ./configure --disable-nls --disable-shared-libs && make sources >/dev/null && tox -e${TOXENV}; fi
296-
- sh: if test `uname -s` = "Linux" && test ${BUILD_ENVIRONMENT} = "python-tox"; then ./synclibs.sh && ./autogen.sh && ./configure --disable-nls --disable-shared-libs && make sources >/dev/null && tox -e${TOXENV} && tox -eauditwheel -- --plat ${AUDITWHEEL_PLAT} dist/*.whl && rm -f dist/*.whl && mv wheelhouse/*.whl dist/; fi
297289
- cmd: if [%BUILD_ENVIRONMENT%]==[cygwin64] (
298290
xcopy /i /q /s C:\projects\libpff C:\cygwin64\home\appveyor\libpff &&
299291
C:\cygwin64\bin\bash -e -l -c "cd libpff && wget -q 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD' -O './config.guess' && wget -q 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD' -O './config.sub'" &&
@@ -328,5 +320,4 @@ deploy_script:
328320
- ps: If ($env:APPVEYOR_REPO_TAG -eq "true" -and $isWindows -and $env:BUILD_ENVIRONMENT -eq "python-tox") {
329321
Invoke-Expression "${env:PYTHON} -m twine upload dist/*.whl --username __token__ --password ${env:PYPI_TOKEN} --skip-existing" }
330322
- sh: if test ${APPVEYOR_REPO_TAG} = "true" && test `uname -s` = "Darwin" && test ${BUILD_ENVIRONMENT} = "python-tox"; then twine upload dist/*.whl --username __token__ --password ${PYPI_TOKEN} --skip-existing; fi
331-
- sh: if test ${APPVEYOR_REPO_TAG} = "true" && test `uname -s` = "Linux" && test ${BUILD_ENVIRONMENT} = "python-tox"; then python3 -m twine upload dist/*.whl --username __token__ --password ${PYPI_TOKEN} --skip-existing; fi
332323

m4/python.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
dnl Functions for Python bindings
22
dnl
3-
dnl Version: 20240418
3+
dnl Version: 20251125
44

55
dnl Function to check if the python binary is available
66
dnl "python${PYTHON_VERSION} python python# python#.#"
77
AC_DEFUN([AX_PROG_PYTHON],
88
[AS_IF(
99
[test "x${PYTHON_VERSION}" != x],
1010
[ax_python_progs="python${PYTHON_VERSION}"],
11-
[ax_python_progs="python python3 python3.12 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5"])
11+
[ax_python_progs="python python3 python3.15 python3.14 python3.14 python3.12 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5"])
1212
AC_CHECK_PROGS(
1313
[PYTHON],
1414
[$ax_python_progs])

setup.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
#!/usr/bin/env python
22
#
33
# Script to build and install Python-bindings.
4-
# Version: 20251028
5-
6-
from __future__ import print_function
4+
# Version: 20251125
75

86
import copy
97
import datetime
@@ -18,10 +16,9 @@
1816
import tarfile
1917
import zipfile
2018

21-
from distutils.ccompiler import new_compiler
22-
2319
from setuptools import Extension
2420
from setuptools import setup
21+
from setuptools._distutils.ccompiler import new_compiler
2522
from setuptools.command.build_ext import build_ext
2623
from setuptools.command.sdist import sdist
2724

@@ -161,7 +158,7 @@ def run(self):
161158
os.remove(sdist_package_file)
162159
sdist_package_file = zip_sdist_package_file
163160

164-
# Inform distutils what files were created.
161+
# Inform setuptools what files were created.
165162
dist_files = getattr(self.distribution, "dist_files", [])
166163
dist_files.append(("sdist", "", sdist_package_file))
167164

0 commit comments

Comments
 (0)