Skip to content

Commit 545f0b5

Browse files
committed
Move sounddevice.py back to the main directory
... because of #110. This commit reverts 6e1d715, see #103.
1 parent 88e5ea5 commit 545f0b5

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
_sounddevice.py
12
*.pyc
23
__pycache__/
34
build/

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('../src'))
22+
sys.path.insert(0, os.path.abspath('..'))
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: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
import platform
33
from setuptools import setup
44

5-
package_dir = {'': 'src'}
6-
75
# "import" __version__
86
__version__ = 'unknown'
9-
for line in open(os.path.join('src', 'sounddevice.py')):
7+
for line in open('sounddevice.py'):
108
if line.startswith('__version__'):
119
exec(line)
1210
break
@@ -37,7 +35,6 @@
3735
packages = ['_sounddevice_data']
3836
package_data = {'_sounddevice_data': ['portaudio-binaries/' + libname,
3937
'portaudio-binaries/README.md']}
40-
package_dir['_sounddevice_data'] = '_sounddevice_data'
4138
zip_safe = False
4239
else:
4340
packages = None
@@ -70,7 +67,6 @@ def get_tag(self):
7067
setup(
7168
name='sounddevice',
7269
version=__version__,
73-
package_dir=package_dir,
7470
py_modules=['sounddevice'],
7571
packages=packages,
7672
package_data=package_data,
File renamed without changes.

0 commit comments

Comments
 (0)