Skip to content

Commit

Permalink
#578: another attempt to fix import failures
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Feb 9, 2015
1 parent 334ee88 commit 510a122
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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',
Expand Down Expand Up @@ -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',
Expand All @@ -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',
Expand All @@ -115,15 +115,15 @@ 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,
]
# 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'],),
Expand Down

0 comments on commit 510a122

Please sign in to comment.