17 os.system(
'git clean -dfx')
19 package_folder = os.path.join(os.path.dirname(__file__),
'pvrecorder')
20 os.mkdir(package_folder)
22 shutil.copy(os.path.join(os.path.dirname(__file__),
'../../LICENSE'), package_folder)
24 shutil.copy(os.path.join(os.path.dirname(__file__),
'__init__.py'), os.path.join(package_folder,
'__init__.py'))
25 shutil.copy(os.path.join(os.path.dirname(__file__),
'pvrecorder.py'), os.path.join(package_folder,
'pvrecorder.py'))
28 os.path.join(os.path.dirname(__file__),
'../../scripts'),
29 os.path.join(package_folder,
'scripts'))
31 platforms = (
'beaglebone',
'jetson',
'linux',
'mac',
'raspberry-pi',
'windows')
33 os.mkdir(os.path.join(package_folder,
'lib'))
34 for platform
in platforms:
36 os.path.join(os.path.dirname(__file__),
'../../lib', platform),
37 os.path.join(package_folder,
'lib', platform))
40 include pvrecorder/LICENSE
41 include pvrecorder/__init__.py
42 include pvrecorder/pv_recorder.py
43 include pvrecorder/lib/beaglebone/libpv_recorder.so
44 recursive-include pvrecorder/lib/jetson *
45 include pvrecorder/lib/linux/x86_64/libpv_recorder.so
46 include pvrecorder/lib/mac/x86_64/libpv_recorder.dylib
47 include pvrecorder/lib/mac/arm64/libpv_recorder.dylib
48 recursive-include pvrecorder/lib/raspberry-pi *
49 include pvrecorder/lib/windows/amd64/libpv_recorder.dll
50 recursive-include pvrecorder/scripts *
53 with open(os.path.join(os.path.dirname(__file__),
'MANIFEST.in'),
'w')
as f:
54 f.write(MANIFEST_IN.strip(
'\n '))
56 with open(os.path.join(os.path.dirname(__file__),
'README.md'),
'r')
as f:
57 long_description = f.read()
63 author_email=
"hello@picovoice.ai",
64 description=
"Recorder library for Picovoice.",
65 long_description=long_description,
66 long_description_content_type=
"text/markdown",
67 url=
"https://github.com/Picovoice/pvrecorder",
68 packages=[
"pvrecorder"],
69 install_requires=[
"enum34"],
70 include_package_data=
True,
72 "Development Status :: 5 - Production/Stable",
73 "Intended Audience :: Developers",
74 "License :: OSI Approved :: Apache Software License",
75 "Operating System :: OS Independent",
76 "Programming Language :: Python :: 3",
77 "Topic :: Multimedia :: Sound/Audio :: Speech"
79 python_requires=
'>=3',
80 keywords=
"audio recorder",