From: Jaroslav Kysela Date: Tue, 3 Apr 2018 09:52:25 +0000 (+0200) Subject: setup.py: check for the existence of the build directory X-Git-Tag: v1.1.6~2 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=88d424e365fc739f95660ed43903b554c56b65b6;p=alsa-python.git setup.py: check for the existence of the build directory Signed-off-by: Jaroslav Kysela --- diff --git a/setup.py b/setup.py index fe43277..58d4513 100755 --- a/setup.py +++ b/setup.py @@ -69,7 +69,7 @@ SOFILES = [ uname = os.uname() dir = 'build/lib.%s-%s-%s/pyalsa' % (uname[0].lower(), uname[4], sys.version[:3]) -files = os.listdir(dir) +files = os.path.exists(dir) and os.listdir(dir) or [] for f in SOFILES: path = '' for f2 in files: