Skip to content

Commit 97ef871

Browse files
committed
setup: use None for library_dirs when not set
Setting it to a list containing an empty string breaks the Debian builders.
1 parent 735e13e commit 97ef871

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,16 +198,16 @@ def find_system_module_path():
198198
# to something else. The problem is that virtualenv somehow
199199
# now overrides the base_prefix (which it shouldn't do) which
200200
# makes distutils unable to find our Python library
201-
python_lib_dir = ""
201+
python_lib_dirs = None
202202
if platform.system() == 'Windows':
203203
ci_python_dir = os.path.split(find_system_module_path())[0]
204-
python_lib_dir = os.path.join(ci_python_dir, "Libs")
204+
python_lib_dirs = [os.path.join(ci_python_dir, "Libs")]
205205

206206
setup_kwargs['ext_modules'].append(Extension(
207207
'overviewer_core.c_overviewer',
208208
c_overviewer_files,
209209
include_dirs=['.', numpy_include] + pil_include,
210-
library_dirs=[python_lib_dir],
210+
library_dirs=python_lib_dirs,
211211
depends=c_overviewer_includes,
212212
extra_link_args=[]
213213
))

0 commit comments

Comments
 (0)