<commit_before>#!/bin/sh

# Create a source distribution and platform-specific wheel distributions.

PYTHON=python3

make_wheel()
{
  $PYTHON setup.py clean --all
  PYTHON_SOUNDDEVICE_PLATFORM=$1 PYTHON_SOUNDDEVICE_ARCHITECTURE=$2 \
    $PYTHON setup.py bdist_wheel
}

rm -rf sounddevice.egg-info/
$PYTHON setup.py clean --all
$PYTHON setup.py sdist

# This creates a "pure" wheel:
make_wheel Linux

# This is always 64bit:
make_wheel Darwin

make_wheel Windows 32bit

make_wheel Windows 64bit

$PYTHON setup.py clean --all<commit_msg>Update build script to use "build"<commit_after>#!/bin/sh

set -euo pipefail

# Create a source distribution and platform-specific wheel distributions.

PYTHON=python3

make_wheel()
{
  PYTHON_SOUNDDEVICE_PLATFORM=$1 PYTHON_SOUNDDEVICE_ARCHITECTURE=$2 \
    $PYTHON -m build
}

# This is always 64bit:
make_wheel Darwin

make_wheel Windows 32bit

make_wheel Windows 64bit

# This makes sure that the libraries are not copied to the final sdist:
rm -rf sounddevice.egg-info/

# This creates a "pure" wheel:
make_wheel Linux
{'fraction_non_alphanumeric': 0.07852412488174078, 'fraction_numerical': 0.017029328287606435, 'mean_word_length': 4.657754010695188, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4571906', 'n_tokens_mistral': 388, 'n_tokens_neox': 367, 'n_words': 111}