Compare commits
27 commits
Author | SHA1 | Date | |
---|---|---|---|
2fa5defe08 | |||
6fa95fd45d | |||
33a330641f | |||
fa6250d649 | |||
f89f5a6295 | |||
9048ddf99d | |||
182ac825de | |||
c5c32ab5fd | |||
53ba10ee35 | |||
ccb4a221a8 | |||
03ea02690b | |||
684a20f530 | |||
7ec8e0300e | |||
985ef13cf9 | |||
ea42a66eb9 | |||
4125491113 | |||
33f4475300 | |||
6ac2f348af | |||
533523c18c | |||
75fb06fe23 | |||
b8ce0c6635 | |||
388e73d1fb | |||
d15baf015f | |||
9bf45d3a21 | |||
e696d8568a | |||
856f522996 | |||
42c2c0cd82 |
8 changed files with 134 additions and 125 deletions
73
.github/workflows/build-pypi.yml
vendored
73
.github/workflows/build-pypi.yml
vendored
|
@ -16,13 +16,13 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the repository
|
- name: Checkout the repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.8'
|
python-version: '3.12'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install build twine
|
python -m pip install build twine
|
||||||
|
@ -30,8 +30,9 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
python -m build --sdist
|
python -m build --sdist
|
||||||
- name: Put SDist in artifact container
|
- name: Put SDist in artifact container
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
name: cibw-sdist
|
||||||
path: dist/*.tar.gz
|
path: dist/*.tar.gz
|
||||||
- name: Check SDist metadata
|
- name: Check SDist metadata
|
||||||
run: |
|
run: |
|
||||||
|
@ -42,61 +43,55 @@ jobs:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
|
||||||
bitness: [32, 64]
|
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
|
||||||
python: [3.6, 3.7, 3.8, 3.9]
|
|
||||||
include:
|
|
||||||
- os: windows-latest
|
|
||||||
bitness: 64
|
|
||||||
platform_id: win_amd64
|
|
||||||
- os: windows-latest
|
|
||||||
bitness: 32
|
|
||||||
platform_id: win32
|
|
||||||
- os: ubuntu-latest
|
|
||||||
bitness: 64
|
|
||||||
platform_id: manylinux_x86_64
|
|
||||||
- os: ubuntu-latest
|
|
||||||
bitness: 32
|
|
||||||
platform_id: manylinux_i686
|
|
||||||
- os: macos-latest
|
|
||||||
bitness: 64
|
|
||||||
platform_id: macosx_x86_64
|
|
||||||
exclude:
|
|
||||||
- os: macos-latest
|
|
||||||
bitness: 32
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
- name: Set up QEMU on Linux images
|
||||||
|
if: runner.os == 'Linux'
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
with:
|
||||||
|
platforms: all
|
||||||
- name: Get Python Version Name
|
- name: Get Python Version Name
|
||||||
uses: mad9000/actions-find-and-replace-string@2
|
uses: mad9000/actions-find-and-replace-string@5
|
||||||
id: pythonversion
|
id: pythonversion
|
||||||
with:
|
with:
|
||||||
source: ${{ matrix.python }}
|
source: ${{ matrix.python }}
|
||||||
find: '.'
|
find: '.'
|
||||||
replace: ''
|
replace: ''
|
||||||
- name: Build wheels
|
- name: "Install Python 3.8 universal2 on macOS arm64"
|
||||||
uses: joerick/cibuildwheel@v1.10.0
|
if: runner.os == 'macOS' && runner.arch == 'arm64'
|
||||||
|
uses: actions/setup-python@v5
|
||||||
env:
|
env:
|
||||||
CIBW_BUILD: cp${{ steps.pythonversion.outputs.value }}-${{ matrix.platform_id }}
|
PIP_DISABLE_PIP_VERSION_CHECK: 1
|
||||||
|
with:
|
||||||
|
python-version: 3.8
|
||||||
|
- name: Build wheels
|
||||||
|
uses: joerick/cibuildwheel@v2.20.0
|
||||||
|
env:
|
||||||
|
CIBW_BUILD: "cp${{ steps.pythonversion.outputs.value }}-*"
|
||||||
CIBW_ENVIRONMENT: "SETUPTOOLS_SCM_PRETEND_VERSION=${{ github.event.inputs.overrideVersion }}"
|
CIBW_ENVIRONMENT: "SETUPTOOLS_SCM_PRETEND_VERSION=${{ github.event.inputs.overrideVersion }}"
|
||||||
- name: Upload wheels to artifact container
|
- name: Upload wheels to artifact container
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
|
||||||
path: wheelhouse/*.whl
|
path: wheelhouse/*.whl
|
||||||
|
|
||||||
upload_all:
|
upload_all:
|
||||||
needs: [build_wheels, make_sdist]
|
needs: [build_wheels, make_sdist]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
environment: release
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
steps:
|
steps:
|
||||||
- name: Get SDist and wheels from artifact container
|
- name: Get SDist and wheels from artifact container
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: artifact
|
pattern: cibw-*
|
||||||
path: dist
|
path: dist
|
||||||
- name: Publish wheels to Test PyPI
|
merge-multiple: true
|
||||||
uses: pypa/gh-action-pypi-publish@v1.4.2
|
- name: Publish wheels to PyPI
|
||||||
with:
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
user: ${{ secrets.PYPI_USERNAME }}
|
|
||||||
password: ${{ secrets.PYPI_PASSWORD }}
|
|
||||||
|
|
74
.github/workflows/build-test-pypi.yml
vendored
74
.github/workflows/build-test-pypi.yml
vendored
|
@ -16,13 +16,13 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout the repository
|
- name: Checkout the repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.8'
|
python-version: '3.12'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install build twine
|
python -m pip install build twine
|
||||||
|
@ -30,8 +30,9 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
python -m build --sdist
|
python -m build --sdist
|
||||||
- name: Put SDist in artifact container
|
- name: Put SDist in artifact container
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
name: cibw-sdist
|
||||||
path: dist/*.tar.gz
|
path: dist/*.tar.gz
|
||||||
- name: Check SDist metadata
|
- name: Check SDist metadata
|
||||||
run: |
|
run: |
|
||||||
|
@ -42,62 +43,57 @@ jobs:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
|
||||||
bitness: [32, 64]
|
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
|
||||||
python: [3.6, 3.7, 3.8, 3.9]
|
|
||||||
include:
|
|
||||||
- os: windows-latest
|
|
||||||
bitness: 64
|
|
||||||
platform_id: win_amd64
|
|
||||||
- os: windows-latest
|
|
||||||
bitness: 32
|
|
||||||
platform_id: win32
|
|
||||||
- os: ubuntu-latest
|
|
||||||
bitness: 64
|
|
||||||
platform_id: manylinux_x86_64
|
|
||||||
- os: ubuntu-latest
|
|
||||||
bitness: 32
|
|
||||||
platform_id: manylinux_i686
|
|
||||||
- os: macos-latest
|
|
||||||
bitness: 64
|
|
||||||
platform_id: macosx_x86_64
|
|
||||||
exclude:
|
|
||||||
- os: macos-latest
|
|
||||||
bitness: 32
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
- name: Set up QEMU on Linux images
|
||||||
|
if: runner.os == 'Linux'
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
with:
|
||||||
|
platforms: all
|
||||||
- name: Get Python Version Name
|
- name: Get Python Version Name
|
||||||
uses: mad9000/actions-find-and-replace-string@2
|
uses: mad9000/actions-find-and-replace-string@5
|
||||||
id: pythonversion
|
id: pythonversion
|
||||||
with:
|
with:
|
||||||
source: ${{ matrix.python }}
|
source: ${{ matrix.python }}
|
||||||
find: '.'
|
find: '.'
|
||||||
replace: ''
|
replace: ''
|
||||||
- name: Build wheels
|
- name: "Install Python 3.8 universal2 on macOS arm64"
|
||||||
uses: joerick/cibuildwheel@v1.10.0
|
if: runner.os == 'macOS' && runner.arch == 'arm64'
|
||||||
|
uses: actions/setup-python@v5
|
||||||
env:
|
env:
|
||||||
CIBW_BUILD: cp${{ steps.pythonversion.outputs.value }}-${{ matrix.platform_id }}
|
PIP_DISABLE_PIP_VERSION_CHECK: 1
|
||||||
|
with:
|
||||||
|
python-version: 3.8
|
||||||
|
- name: Build wheels
|
||||||
|
uses: joerick/cibuildwheel@v2.20.0
|
||||||
|
env:
|
||||||
|
CIBW_BUILD: "cp${{ steps.pythonversion.outputs.value }}-*"
|
||||||
CIBW_ENVIRONMENT: "SETUPTOOLS_SCM_PRETEND_VERSION=${{ github.event.inputs.overrideVersion }}"
|
CIBW_ENVIRONMENT: "SETUPTOOLS_SCM_PRETEND_VERSION=${{ github.event.inputs.overrideVersion }}"
|
||||||
- name: Upload wheels to artifact container
|
- name: Upload wheels to artifact container
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: wheelhouse/*.whl
|
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
|
||||||
|
path: ./wheelhouse/*.whl
|
||||||
|
|
||||||
upload_all:
|
upload_all:
|
||||||
needs: [build_wheels, make_sdist]
|
needs: [build_wheels, make_sdist]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
environment: release
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
steps:
|
steps:
|
||||||
- name: Get SDist and wheels from artifact container
|
- name: Get SDist and wheels from artifact container
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: artifact
|
pattern: cibw-*
|
||||||
path: dist
|
path: dist
|
||||||
|
merge-multiple: true
|
||||||
- name: Publish wheels to Test PyPI
|
- name: Publish wheels to Test PyPI
|
||||||
uses: pypa/gh-action-pypi-publish@v1.4.2
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
with:
|
with:
|
||||||
user: ${{ secrets.TEST_PYPI_USERNAME }}
|
repository-url: https://test.pypi.org/legacy/
|
||||||
password: ${{ secrets.TEST_PYPI_PASSWORD }}
|
|
||||||
repository_url: https://test.pypi.org/legacy/
|
|
||||||
|
|
12
.github/workflows/run-tests.yml
vendored
12
.github/workflows/run-tests.yml
vendored
|
@ -16,16 +16,16 @@ jobs:
|
||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [3.6, 3.7, 3.8, 3.9]
|
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Install libsndfile if necessary (Linux)
|
- name: Install libsndfile if necessary (Linux)
|
||||||
|
@ -46,8 +46,8 @@ jobs:
|
||||||
- name: Upload coverage to Codecov.io
|
- name: Upload coverage to Codecov.io
|
||||||
run: |
|
run: |
|
||||||
bash <(curl -s https://codecov.io/bash)
|
bash <(curl -s https://codecov.io/bash)
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' }}
|
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12' }}
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: coverage.xml
|
path: coverage.xml
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9' }}
|
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12' }}
|
|
@ -2,6 +2,15 @@
|
||||||
|
|
||||||
## [Unreleased] - ??-??-????
|
## [Unreleased] - ??-??-????
|
||||||
|
|
||||||
|
## [0.1.1] - 2024-09-06
|
||||||
|
### Changed
|
||||||
|
* Base Python version is now 3.8.
|
||||||
|
* Supports up to Python 3.12
|
||||||
|
* Now builds for most other supported architectures. (Windows ARM64 disabled for now)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
* Removed MSVC check due to setuptools deprecating more of distutils functions. (#1)
|
||||||
|
|
||||||
## [0.1.0] - 2021-03-25
|
## [0.1.0] - 2021-03-25
|
||||||
### Added
|
### Added
|
||||||
* First release!
|
* First release!
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||

|

|
||||||
[](https://codecov.io/gh/jodhus/pyebur128)
|
[](https://codecov.io/gh/jodhus/pyebur128)
|
||||||

|

|
||||||

|

|
||||||
|
@ -11,7 +11,7 @@ A Cython implementation of the [libebur128](https://github.com/jiixyj/libebur128
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
* Operating Systems: Linux, macOS, or Windows
|
* Operating Systems: Linux, macOS, or Windows
|
||||||
* Python: 3.6+
|
* Python: 3.8+
|
||||||
* Dependencies: None!
|
* Dependencies: None!
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
|
@ -1,12 +1,40 @@
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = [
|
requires = ['wheel', 'setuptools', 'Cython', 'setuptools_scm[toml]']
|
||||||
'wheel',
|
|
||||||
'setuptools',
|
|
||||||
'Cython',
|
|
||||||
'setuptools_scm[toml]',
|
|
||||||
]
|
|
||||||
build-backend = 'setuptools.build_meta'
|
build-backend = 'setuptools.build_meta'
|
||||||
|
|
||||||
|
[tool.cibuildwheel]
|
||||||
|
test-command = 'pytest {package}/tests'
|
||||||
|
test-extras = ['tests']
|
||||||
|
# There seems to be a problem compiling NumPy for testing due to a missing
|
||||||
|
# constant definition for s390x builds. Skipping for now.
|
||||||
|
test-skip = "*-musllinux_s390x"
|
||||||
|
|
||||||
|
[tool.cibuildwheel.linux]
|
||||||
|
archs = ['auto', 'aarch64', 'ppc64le', 's390x']
|
||||||
|
before-test = "yum -y install libsndfile"
|
||||||
|
|
||||||
|
[tool.cibuildwheel.macos]
|
||||||
|
before-test = "brew install libsndfile"
|
||||||
|
|
||||||
|
# Will re-enable Windows ARM64 once libebur128 pull request #131 is merged.
|
||||||
|
# https://github.com/jiixyj/libebur128/pull/131
|
||||||
|
#[tool.cibuildwheel.windows]
|
||||||
|
#archs = ['auto', 'ARM64']
|
||||||
|
|
||||||
|
[[tool.cibuildwheel.overrides]]
|
||||||
|
# There is a known issue with buildroot/musl images not detecting libraries
|
||||||
|
# correctly. Python's ctypes library is affected by this, which is needed by
|
||||||
|
# python-soundfile to use libsndfile. This hack is to get around this issue to
|
||||||
|
# be able to test on musllinux successfully.
|
||||||
|
# See https://github.com/bastibe/python-soundfile/issues/258
|
||||||
|
select = '*-musllinux*'
|
||||||
|
before-test = [
|
||||||
|
'apk add libsndfile',
|
||||||
|
'pip install soundfile',
|
||||||
|
'PYVER=`python -c "import sys; print(\".\".join(map(str, sys.version_info[:2])))"`',
|
||||||
|
'sed -i "192b1; b ;:1;s/_explicit_libname/\"\/usr\/lib\/libsndfile.so.1\"/g" $VIRTUAL_ENV/lib/python$PYVER/site-packages/soundfile.py',
|
||||||
|
]
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
minversion = '6.0'
|
minversion = '6.0'
|
||||||
addopts = '--cov-report=xml --cov-report=term:skip-covered --cov=pyebur128'
|
addopts = '--cov-report=xml --cov-report=term:skip-covered --cov=pyebur128'
|
||||||
|
|
|
@ -34,10 +34,11 @@ classifiers =
|
||||||
Operating System :: Microsoft :: Windows
|
Operating System :: Microsoft :: Windows
|
||||||
Programming Language :: Cython
|
Programming Language :: Cython
|
||||||
Programming Language :: Python :: 3
|
Programming Language :: Python :: 3
|
||||||
Programming Language :: Python :: 3.6
|
|
||||||
Programming Language :: Python :: 3.7
|
|
||||||
Programming Language :: Python :: 3.8
|
Programming Language :: Python :: 3.8
|
||||||
Programming Language :: Python :: 3.9
|
Programming Language :: Python :: 3.9
|
||||||
|
Programming Language :: Python :: 3.10
|
||||||
|
Programming Language :: Python :: 3.11
|
||||||
|
Programming Language :: Python :: 3.12
|
||||||
Topic :: Software Development :: Libraries :: Python Modules
|
Topic :: Software Development :: Libraries :: Python Modules
|
||||||
Topic :: Multimedia :: Sound/Audio
|
Topic :: Multimedia :: Sound/Audio
|
||||||
Topic :: Multimedia :: Sound/Audio :: Analysis
|
Topic :: Multimedia :: Sound/Audio :: Analysis
|
||||||
|
@ -45,7 +46,7 @@ classifiers =
|
||||||
[options]
|
[options]
|
||||||
zip_safe = True
|
zip_safe = True
|
||||||
include_package_data = True
|
include_package_data = True
|
||||||
python_requires = >= 3.6
|
python_requires = >= 3.8
|
||||||
install_requires =
|
install_requires =
|
||||||
packages = find:
|
packages = find:
|
||||||
package_dir =
|
package_dir =
|
||||||
|
|
40
setup.py
40
setup.py
|
@ -1,35 +1,7 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
|
|
||||||
import platform
|
from setuptools import setup, Extension
|
||||||
|
|
||||||
from setuptools import setup, find_packages, Extension
|
|
||||||
from distutils.ccompiler import new_compiler
|
|
||||||
from distutils.msvccompiler import MSVCCompiler
|
|
||||||
|
|
||||||
|
|
||||||
def is_msvc():
|
|
||||||
'''Checks to see if the detected C compiler is MSVC.'''
|
|
||||||
try:
|
|
||||||
# This depends on _winreg, which is not available on not-Windows.
|
|
||||||
from distutils.msvc9compiler import MSVCCompiler as MSVC9Compiler
|
|
||||||
except ImportError:
|
|
||||||
MSVC9Compiler = None
|
|
||||||
try:
|
|
||||||
from distutils._msvccompiler import MSVCCompiler as MSVC14Compiler
|
|
||||||
except ImportError:
|
|
||||||
MSVC14Compiler = None
|
|
||||||
msvc_classes = tuple(filter(None, (MSVCCompiler,
|
|
||||||
MSVC9Compiler,
|
|
||||||
MSVC14Compiler)))
|
|
||||||
cc = new_compiler()
|
|
||||||
return isinstance(cc, msvc_classes)
|
|
||||||
|
|
||||||
|
|
||||||
macros = []
|
|
||||||
|
|
||||||
# MSVC won't use <math.h> unless this is defined.
|
|
||||||
if platform.system() == 'Windows' and is_msvc():
|
|
||||||
macros.append(('_USE_MATH_DEFINES', None))
|
|
||||||
|
|
||||||
extensions = [
|
extensions = [
|
||||||
Extension(
|
Extension(
|
||||||
|
@ -43,7 +15,15 @@ extensions = [
|
||||||
'src/lib/ebur128',
|
'src/lib/ebur128',
|
||||||
'src/lib/ebur128/queue',
|
'src/lib/ebur128/queue',
|
||||||
],
|
],
|
||||||
define_macros=macros,
|
# Not happy about it, but I'll just use this macro on all compilers for
|
||||||
|
# now. Setuptools doesn't have a reliable way to detect MSVC when they
|
||||||
|
# started deprecating the older distutils functionality of MSVCCompiler
|
||||||
|
# and new_compiler(). Besides, looking at the old distutils code, it
|
||||||
|
# just assumed that MSVC was the compiler if it detected Windows. If you
|
||||||
|
# wanted GCC/MinGW/LLVM on Windows, you had to manually pass it as an
|
||||||
|
# argument to new_compiler().
|
||||||
|
# See https://github.com/pypa/setuptools/issues/2806
|
||||||
|
define_macros=[('_USE_MATH_DEFINES', None)],
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue