diff options
| author | bsebi <sebastianbrestin@gmail.com> | 2015-10-28 18:50:41 +0200 |
|---|---|---|
| committer | bsebi <sebastianbrestin@gmail.com> | 2015-10-28 18:50:41 +0200 |
| commit | f89aec2e56e1e1e503a6292850048bbea6de31a1 (patch) | |
| tree | a8011a0d369c78b935e939290a5173d647d5200d /setup.py | |
| parent | 36316de315a55dece354cf98533e647d7f62c49b (diff) | |
| download | psutil-f89aec2e56e1e1e503a6292850048bbea6de31a1.tar.gz | |
#704: psutil does not compile/cannot be imported on solaris sparc
Diffstat (limited to 'setup.py')
| -rw-r--r-- | setup.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -71,7 +71,7 @@ if os.name == 'posix': posix_extension = Extension( 'psutil._psutil_posix', sources=['psutil/_psutil_posix.c']) - if sys.platform.startswith("sunos"): + if sys.platform.startswith("sunos") or sys.platform.startswith("solaris"): posix_extension.libraries.append('socket') if platform.release() == '5.10': posix_extension.sources.append('psutil/arch/solaris/v10/ifaddrs.c') @@ -175,7 +175,7 @@ elif sys.platform.startswith("linux"): define_macros=macros) extensions = [ext, posix_extension] # Solaris -elif sys.platform.lower().startswith('sunos'): +elif sys.platform.lower().startswith('sunos') or sys.platform.lower().startswith('solaris'): ext = Extension( 'psutil._psutil_sunos', sources=['psutil/_psutil_sunos.c'], |
