Skip to content

Commit

Permalink
More SmartOS esky fixes
Browse files Browse the repository at this point in the history
SmartOS should eventually get the spwd module
so we should try to import and include it like we do for Linux
( see TritonDataCenter/pkgsrc#164 )
  • Loading branch information
nshalman committed Jan 30, 2014
1 parent 8a53c92 commit ff662f1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,14 @@ def run(self):
FREEZER_INCLUDES.append('yum')
except ImportError:
pass
elif sys.platform.startswith('sunos'):
try:
# SmartOS should eventually have the spwd module
# and when it does, we should pull it in.
import spwd
FREEZER_INCLUDES.append('spwd')
except ImportError:
pass

if HAS_ESKY:
# if the user has the esky / bbfreeze libraries installed, add the
Expand Down

0 comments on commit ff662f1

Please sign in to comment.