Skip to content

Commit 6e1d715

Browse files
committed
Move sounddevice.py to src/
1 parent ec37ef5 commit 6e1d715

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# If extensions (or modules to document with autodoc) are in another directory,
2020
# add these directories to sys.path here. If the directory is relative to the
2121
# documentation root, use os.path.abspath to make it absolute, like shown here.
22-
sys.path.insert(0, os.path.abspath('..'))
22+
sys.path.insert(0, os.path.abspath('../src'))
2323
sys.path.insert(0, os.path.abspath('.'))
2424

2525
# Fake import to avoid actually loading CFFI and the PortAudio library

setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
import platform
33
from setuptools import setup
44

5-
__version__ = 'unknown'
5+
package_dir = {'': 'src'}
66

77
# "import" __version__
8-
for line in open('sounddevice.py'):
8+
__version__ = 'unknown'
9+
for line in open(os.path.join('src', 'sounddevice.py')):
910
if line.startswith('__version__'):
1011
exec(line)
1112
break
@@ -35,6 +36,7 @@
3536
if libname and os.path.isdir('_sounddevice_data'):
3637
packages = ['_sounddevice_data']
3738
package_data = {'_sounddevice_data': [libname, 'README.md']}
39+
package_dir['_sounddevice_data'] = '_sounddevice_data'
3840
zip_safe = False
3941
else:
4042
packages = None
@@ -67,6 +69,7 @@ def get_tag(self):
6769
setup(
6870
name='sounddevice',
6971
version=__version__,
72+
package_dir=package_dir,
7073
py_modules=['sounddevice'],
7174
packages=packages,
7275
package_data=package_data,
File renamed without changes.

0 commit comments

Comments
 (0)