Skip to content

Commit

Permalink
release.pex: handle 3.8 having no more 'm' ABI flag
Browse files Browse the repository at this point in the history
  • Loading branch information
jhermann committed Feb 28, 2020
1 parent 3641e1c commit 5b5b7d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rituals/acts/releasing.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,10 @@ def pex(ctx, pyrun='', upload=False, opts='', windows=False):
# Create wheels for platform-specific builds (PEX uses '--only-binary :all:')
pex_ext = '.pex'
if windows:
# For the ABI flag switch, see https://bugs.python.org/issue36707
opts += ' --repo=dist/wheels'
opts += ' --platform=win_amd64-cp-{py.major}{py.minor}-m'.format(py=sys.version_info)
opts += ' --platform=win_amd64-cp-{py.major}{py.minor}-cp{py.major}{py.minor}{flags}'.format(
py=sys.version_info, flags='m' if sys.version_info < (3, 8) else '')
pex_ext = '.pyz'
ctx.run(sys.executable + " -m pip wheel -w dist/wheels -r requirements.txt .")

Expand Down

0 comments on commit 5b5b7d8

Please sign in to comment.