|
2 | 2 | import platform |
3 | 3 | from setuptools import setup |
4 | 4 |
|
5 | | -# "import" __version__ |
6 | | -__version__ = 'unknown' |
7 | | -for line in open('sounddevice.py'): |
8 | | - if line.startswith('__version__'): |
9 | | - exec(line) |
10 | | - break |
11 | | - |
12 | 5 | MACOSX_VERSIONS = '.'.join([ |
13 | 6 | 'macosx_10_6_x86_64', # for compatibility with pip < v21 |
14 | 7 | 'macosx_10_6_universal2', |
|
27 | 20 | else: |
28 | 21 | libname = None |
29 | 22 |
|
30 | | -if libname and os.path.isdir('_sounddevice_data/portaudio-binaries'): |
| 23 | +if libname: |
31 | 24 | packages = ['_sounddevice_data'] |
32 | 25 | package_data = {'_sounddevice_data': ['portaudio-binaries/' + libname, |
33 | 26 | 'portaudio-binaries/README.md']} |
@@ -63,34 +56,11 @@ def get_tag(self): |
63 | 56 | cmdclass = {'bdist_wheel': bdist_wheel_half_pure} |
64 | 57 |
|
65 | 58 | setup( |
66 | | - name='sounddevice', |
67 | | - version=__version__, |
| 59 | + package_dir = {'': 'src'}, |
68 | 60 | py_modules=['sounddevice'], |
69 | 61 | packages=packages, |
70 | 62 | package_data=package_data, |
71 | 63 | zip_safe=zip_safe, |
72 | | - python_requires='>=3.7', |
73 | | - setup_requires=['CFFI>=1.0'], |
74 | | - install_requires=['CFFI>=1.0'], |
75 | | - extras_require={'NumPy': ['NumPy']}, |
76 | 64 | cffi_modules=['sounddevice_build.py:ffibuilder'], |
77 | | - author='Matthias Geier', |
78 | | - |
79 | | - description='Play and Record Sound with Python', |
80 | | - long_description=open('README.rst').read(), |
81 | | - license='MIT', |
82 | | - keywords='sound audio PortAudio play record playrec'.split(), |
83 | | - url='http://python-sounddevice.readthedocs.io/', |
84 | | - project_urls={ |
85 | | - 'Source': 'https://github.com/spatialaudio/python-sounddevice', |
86 | | - }, |
87 | | - platforms='any', |
88 | | - classifiers=[ |
89 | | - 'License :: OSI Approved :: MIT License', |
90 | | - 'Operating System :: OS Independent', |
91 | | - 'Programming Language :: Python', |
92 | | - 'Programming Language :: Python :: 3', |
93 | | - 'Topic :: Multimedia :: Sound/Audio', |
94 | | - ], |
95 | 65 | cmdclass=cmdclass, |
96 | 66 | ) |
0 commit comments