Skip to content

Commit f21050d

Browse files
authored
Merge pull request #68 from glensc/setup-fix
Fix setup.py uninitialized variables issue
2 parents 1cdf87b + f001f1a commit f21050d

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
#if not os.environ.has_key('PKG_CONFIG_PATH'):
4040
# os.environ['PKG_CONFIG_PATH'] = '/usr/local/lib/pkgconfig'
4141

42+
libs = cflags = ''
43+
4244
# Find fuse compiler/linker flag via pkgconfig
4345
if os.system('pkg-config --exists fuse 2> /dev/null') == 0:
4446
pkgcfg = os.popen('pkg-config --cflags fuse')
@@ -49,7 +51,7 @@
4951
pkgcfg.close()
5052

5153
else:
52-
if os.system('pkg-config --help 2> /dev/null') == 0:
54+
if os.system('pkg-config --help 2>&1 >/dev/null') == 0:
5355
print("""pkg-config could not find fuse:
5456
you might need to adjust PKG_CONFIG_PATH or your
5557
FUSE installation is very old (older than 2.1-pre1)""")
@@ -89,7 +91,8 @@ def setup(**kwargs):
8991
if "classifiers" in kwargs:
9092
del kwargs["classifiers"]
9193
_setup(**kwargs)
92-
setup (name = 'fuse-python',
94+
95+
setup(name='fuse-python',
9396
version = __version__,
9497
description = 'Bindings for FUSE',
9598
long_description = """This is a Python interface to libfuse (https://github.com/libfuse/libfuse),

0 commit comments

Comments
 (0)