Skip to content

Commit

Permalink
scripts/gh_release.py: fixed to match lower-case sdist and wheel names.
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-smith-artifex-com committed Dec 5, 2024
1 parent a0e8984 commit 2f7ef3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/gh_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,14 +245,14 @@ def get_bool(name, default=0):
os.chdir( pymupdf_dir)
# Create PyMuPDF sdist.
run(f'{sys.executable} setup.py sdist')
assert glob.glob('dist/PyMuPDF-*.tar.gz')
assert glob.glob('dist/pymupdf-*.tar.gz')
if inputs_flavours:
# Create PyMuPDFb sdist.
run(
f'{sys.executable} setup.py sdist',
env_extra=dict(PYMUPDF_SETUP_FLAVOUR='b'),
)
assert glob.glob('dist/PyMuPDFb-*.tar.gz')
assert glob.glob('dist/pymupdfb-*.tar.gz')

# Build wheels.
#
Expand Down Expand Up @@ -475,7 +475,7 @@ def set_cibuild_test():
# careful to avoid incompatible wheels, e.g. 32 vs 64-bit wheels
# coexist during Windows builds.
#
env_set('CIBW_BEFORE_TEST', f'python scripts/gh_release.py pip_install wheelhouse/PyMuPDFb')
env_set('CIBW_BEFORE_TEST', f'python scripts/gh_release.py pip_install wheelhouse/pymupdfb')

set_cibuild_test()

Expand Down

0 comments on commit 2f7ef3d

Please sign in to comment.