File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 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 ' ))
2323sys .path .insert (0 , os .path .abspath ('.' ))
2424
2525# Fake import to avoid actually loading CFFI and the PortAudio library
Original file line number Diff line number Diff line change 22import platform
33from 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
3536if 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
3941else :
4042 packages = None
@@ -67,6 +69,7 @@ def get_tag(self):
6769setup (
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.
You can’t perform that action at this time.
0 commit comments