From de2dda4616769069f125c473936b1ce31ccf5df4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 12 Mar 2024 15:53:30 +0200 Subject: [PATCH 1/3] Minor whitespace fix To understand where's definition and where's a call to setup() --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index ec92440..70af35e 100755 --- a/setup.py +++ b/setup.py @@ -89,7 +89,8 @@ def setup(**kwargs): if "classifiers" in kwargs: del kwargs["classifiers"] _setup(**kwargs) -setup (name = 'fuse-python', + +setup(name='fuse-python', version = __version__, description = 'Bindings for FUSE', long_description = """This is a Python interface to libfuse (https://github.com/libfuse/libfuse), From 28b65dfb8941efae4a84c3855b911657f1ae109a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 12 Mar 2024 15:46:56 +0200 Subject: [PATCH 2/3] Fix hiding pkg-config output Some version of pkg-config prints to stdout their usage --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 70af35e..f481220 100755 --- a/setup.py +++ b/setup.py @@ -49,7 +49,7 @@ pkgcfg.close() else: - if os.system('pkg-config --help 2> /dev/null') == 0: + if os.system('pkg-config --help 2>&1 >/dev/null') == 0: print("""pkg-config could not find fuse: you might need to adjust PKG_CONFIG_PATH or your FUSE installation is very old (older than 2.1-pre1)""") From f001f1a227b8dc7cb92c086c786b748f5bca3cde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 12 Mar 2024 15:49:26 +0200 Subject: [PATCH 3/3] Fix uninitalized use of libs and cflags --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index f481220..bc7c277 100755 --- a/setup.py +++ b/setup.py @@ -39,6 +39,8 @@ #if not os.environ.has_key('PKG_CONFIG_PATH'): # os.environ['PKG_CONFIG_PATH'] = '/usr/local/lib/pkgconfig' +libs = cflags = '' + # Find fuse compiler/linker flag via pkgconfig if os.system('pkg-config --exists fuse 2> /dev/null') == 0: pkgcfg = os.popen('pkg-config --cflags fuse')