forked from michaelboulton/python_mp3_decoder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
38 lines (34 loc) · 891 Bytes
/
setup.py
File metadata and controls
38 lines (34 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env python
""" Setup mp3 decoder """
from setuptools import setup, Extension
interlace_module = Extension(
"pymp3decoder._pymp3_c",
sources=[
"pymp3decoder/pymp3_c.i",
],
libraries=['mp3lame'],
# Assuming homebrew on mac
include_dirs=[
'/opt/homebrew/include',
'/usr/local/include',
],
runtime_library_dirs=[
'/opt/homebrew/lib',
'/usr/local/lib',
],
swig_opts=['-c++', '-py3', '-module', 'pymp3_c']
)
setup(
name="pymp3decoder",
version="0.0.1",
author="Michael Boulton",
license="MIT",
keywords="mp3 decoder",
author_email="michael.boulton@gmail.com",
description="Simple chunked mp3 decoder",
ext_modules=[interlace_module],
packages=["pymp3decoder"],
test_suite="tests",
setup_requires=['pytest-runner'],
tests_require=['pytest', 'pyaudio'],
)