Windows: Building omemo-dr fails
When trying to set up a development environment using win/dev_env.sh, building omemo-dr fails with the following error:
Building wheels for collected packages: nbxmpp, omemo-dr
Building wheel for nbxmpp (pyproject.toml) ... done
Created wheel for nbxmpp: filename=nbxmpp-4.2.2-py3-none-any.whl size=221051 sha256=fd4670ec653e9cd43ec0fa97ca0a08418d7411f769fbb343b774b767c4b8b8b5
Stored in directory: C:/msys64/tmp/pip-ephem-wheel-cache-igh_i43m/wheels/41/d3/68/c0dca038b4133fd7515674ffba7a81dcaca82cc242d8a0912d
Building wheel for omemo-dr (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for omemo-dr (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [75 lines of output]
C:/msys64/tmp/pip-build-env-ktox4v8p/overlay/lib/python3.10/site-packages/setuptools/config/pyprojecttoml.py:66: _BetaConfiguration: Support for `[tool.setuptools]` in `pyproject.toml` is still *beta*.
config = read_configuration(filepath, True, ignore_option_errors, dist)
running bdist_wheel
running build
running build_py
creating build
creating build/lib.mingw_x86_64-cpython-310
creating build/lib.mingw_x86_64-cpython-310/omemo_dr
copying src/omemo_dr/exceptions.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr
copying src/omemo_dr/identitykey.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr
copying src/omemo_dr/identitykeypair.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr
copying src/omemo_dr/sessionbuilder.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr
copying src/omemo_dr/sessioncipher.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr
copying src/omemo_dr/__init__.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr
creating build/lib.mingw_x86_64-cpython-310/omemo_dr/curve
copying src/omemo_dr/curve/__init__.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/curve
creating build/lib.mingw_x86_64-cpython-310/omemo_dr/ecc
copying src/omemo_dr/ecc/curve.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/ecc
copying src/omemo_dr/ecc/djbec.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/ecc
copying src/omemo_dr/ecc/ec.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/ecc
copying src/omemo_dr/ecc/eckeypair.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/ecc
copying src/omemo_dr/ecc/__init__.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/ecc
creating build/lib.mingw_x86_64-cpython-310/omemo_dr/kdf
copying src/omemo_dr/kdf/derivedmessagesecrets.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/kdf
copying src/omemo_dr/kdf/derivedrootsecrets.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/kdf
copying src/omemo_dr/kdf/hkdf.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/kdf
copying src/omemo_dr/kdf/messagekeys.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/kdf
copying src/omemo_dr/kdf/__init__.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/kdf
creating build/lib.mingw_x86_64-cpython-310/omemo_dr/protocol
copying src/omemo_dr/protocol/ciphertextmessage.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/protocol
copying src/omemo_dr/protocol/omemo_keyexchange.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/protocol
copying src/omemo_dr/protocol/omemo_message.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/protocol
copying src/omemo_dr/protocol/omemo_pb2.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/protocol
copying src/omemo_dr/protocol/prekeywhispermessage.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/protocol
copying src/omemo_dr/protocol/whispermessage.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/protocol
copying src/omemo_dr/protocol/whisperprotos_pb2.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/protocol
copying src/omemo_dr/protocol/__init__.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/protocol
creating build/lib.mingw_x86_64-cpython-310/omemo_dr/ratchet
copying src/omemo_dr/ratchet/aliceaxolotlparameters.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/ratchet
copying src/omemo_dr/ratchet/bobaxolotlparamaters.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/ratchet
copying src/omemo_dr/ratchet/chainkey.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/ratchet
copying src/omemo_dr/ratchet/ratchetingsession.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/ratchet
copying src/omemo_dr/ratchet/rootkey.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/ratchet
copying src/omemo_dr/ratchet/__init__.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/ratchet
creating build/lib.mingw_x86_64-cpython-310/omemo_dr/state
copying src/omemo_dr/state/axolotlstore.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/state
copying src/omemo_dr/state/identitykeystore.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/state
copying src/omemo_dr/state/prekeybundle.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/state
copying src/omemo_dr/state/prekeyrecord.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/state
copying src/omemo_dr/state/prekeystore.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/state
copying src/omemo_dr/state/sessionrecord.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/state
copying src/omemo_dr/state/sessionstate.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/state
copying src/omemo_dr/state/sessionstore.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/state
copying src/omemo_dr/state/signedprekeyrecord.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/state
copying src/omemo_dr/state/signedprekeystore.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/state
copying src/omemo_dr/state/storageprotos_pb2.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/state
copying src/omemo_dr/state/__init__.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/state
creating build/lib.mingw_x86_64-cpython-310/omemo_dr/util
copying src/omemo_dr/util/byteutil.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/util
copying src/omemo_dr/util/keyhelper.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/util
copying src/omemo_dr/util/medium.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/util
copying src/omemo_dr/util/__init__.py -> build/lib.mingw_x86_64-cpython-310/omemo_dr/util
running egg_info
writing src/omemo_dr.egg-info/PKG-INFO
writing dependency_links to src/omemo_dr.egg-info/dependency_links.txt
writing requirements to src/omemo_dr.egg-info/requires.txt
writing top-level names to src/omemo_dr.egg-info/top_level.txt
reading manifest file 'src/omemo_dr.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'src/omemo_dr.egg-info/SOURCES.txt'
copying src/omemo_dr/py.typed -> build/lib.mingw_x86_64-cpython-310/omemo_dr
running build_ext
building 'omemo_dr._curve' extension
error: --plat-name must be one of ('win32', 'win-amd64', 'win-arm32', 'win-arm64')
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for omemo-dr
Successfully built nbxmpp
Failed to build omemo-dr
ERROR: Could not build wheels for omemo-dr, which is required to install pyproject.toml-based projects