From 510a122584bba7e4280d2f20b92c1668fd89e560 Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Mon, 9 Feb 2015 01:54:57 +0100 Subject: [PATCH] #578: another attempt to fix import failures --- setup.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/setup.py b/setup.py index 134af9579..87218ee07 100644 --- a/setup.py +++ b/setup.py @@ -47,7 +47,7 @@ def get_description(): # POSIX if os.name == 'posix': posix_extension = Extension( - 'psutil._psutil_posix', + '_psutil_posix', sources=['psutil/_psutil_posix.c'], ) # Windows @@ -58,7 +58,7 @@ def get_winver(): return '0x0%s' % ((maj * 100) + min) extensions = [Extension( - 'psutil._psutil_windows', + '_psutil_windows', sources=[ 'psutil/_psutil_windows.c', 'psutil/_psutil_common.c', @@ -86,7 +86,7 @@ def get_winver(): # OS X elif sys.platform.startswith("darwin"): extensions = [Extension( - 'psutil._psutil_osx', + '_psutil_osx', sources=[ 'psutil/_psutil_osx.c', 'psutil/_psutil_common.c', @@ -102,7 +102,7 @@ def get_winver(): # FreeBSD elif sys.platform.startswith("freebsd"): extensions = [Extension( - 'psutil._psutil_bsd', + '_psutil_bsd', sources=[ 'psutil/_psutil_bsd.c', 'psutil/_psutil_common.c', @@ -115,7 +115,7 @@ def get_winver(): # Linux elif sys.platform.startswith("linux"): extensions = [Extension( - 'psutil._psutil_linux', + '_psutil_linux', sources=['psutil/_psutil_linux.c'], define_macros=[VERSION_MACRO]), posix_extension, @@ -123,7 +123,7 @@ def get_winver(): # Solaris elif sys.platform.lower().startswith('sunos'): extensions = [Extension( - 'psutil._psutil_sunos', + '_psutil_sunos', sources=['psutil/_psutil_sunos.c'], define_macros=[VERSION_MACRO], libraries=['kstat', 'nsl'],),