Skip to content

Commit 1433ade

Browse files
committed
python3.14t -m pip install pypiwin32 fails
A GitHub Action to demonstrate pip install pypiwin32 on Windows on free-threaded Python 3.14t. * https://pypi.org/project/pypiwin32
1 parent c8880b5 commit 1433ade

File tree

2 files changed

+31
-4
lines changed

2 files changed

+31
-4
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# A GitHub Action to demonstrate pip install pypiwin32 on Windows on Python 3.14t.
2+
# https://github.com/Googulator/pypiwin32 --> https://pypi.org/project/pypiwin32
3+
4+
name: pip_install_pypiwin32
5+
on:
6+
push:
7+
paths:
8+
- '.github/workflows/pip_install_pypiwin32.yml'
9+
pull_request:
10+
paths:
11+
- '.github/workflows/pip_install_pypiwin32.yml'
12+
workflow_dispatch:
13+
jobs:
14+
install_pypiwin32:
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
python-version: [3.14, 3.14t]
19+
os: [windows-latest]
20+
runs-on: ${{ matrix.os }}
21+
steps:
22+
- uses: actions/checkout@v5
23+
- uses: actions/setup-python@v6
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
- run: python3 -m pip install --upgrade pip
27+
- run: pip install pypiwin32

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
build_id_patch = build_id_patch + ".0"
117117
pywin32_version = "%d.%d.%s" % (sys.version_info[0], sys.version_info[1],
118118
build_id_patch)
119-
print(("Building pywin32", pywin32_version))
119+
print("Building pywin32", pywin32_version)
120120

121121
try:
122122
this_file = __file__
@@ -430,7 +430,7 @@ def run(self):
430430
f.write("%s\n" % build_id)
431431
f.close()
432432
except EnvironmentError as why:
433-
print(("Failed to open '%s': %s" % (ver_fname, why)))
433+
print("Failed to open '%s': %s" % (ver_fname, why))
434434

435435

436436
class build_scintilla(Command):
@@ -646,7 +646,7 @@ def _copy_mfc(self):
646646
for f in mfc_files:
647647
self.copy_file(os.path.join(mfc_dir, f), target_dir)
648648
except (EnvironmentError, RuntimeError) as exc:
649-
print(("Can't find an installed VC for the MFC DLLs:", exc))
649+
print("Can't find an installed VC for the MFC DLLs:", exc)
650650

651651
def get_ext_filename(self, name):
652652
# The pywintypes and pythoncom extensions have special names
@@ -775,7 +775,7 @@ def finalize_options(self):
775775
if self.install_dir is None:
776776
installobj = self.distribution.get_command_obj('install')
777777
self.install_dir = installobj.install_lib
778-
print(('Installing data files to %s' % self.install_dir))
778+
print('Installing data files to %s' % self.install_dir)
779779
install_data.finalize_options(self)
780780

781781
# TODO: Find out why these files exist

0 commit comments

Comments
 (0)