PageRenderTime 11ms CodeModel.GetById 2ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/scripts/scramble/scripts/pysam-solaris.py

https://bitbucket.org/cistrome/cistrome-harvard/
Python | 30 lines | 28 code | 1 blank | 1 comment | 1 complexity | ff5c8d7133939e547611fef50c9706b4 MD5 | raw file
 1import os, sys
 2
 3# change back to the build dir
 4if os.path.dirname( sys.argv[0] ) != "":
 5    os.chdir( os.path.dirname( sys.argv[0] ) )
 6
 7# find setuptools
 8sys.path.append( os.path.join( '..', '..', '..', 'lib' ) )
 9from scramble_lib import *
10
11tag = get_tag() # get the tag
12clean() # clean up any existing stuff (could happen if you run scramble.py by hand)
13
14# reset args for distutils
15me = sys.argv[0]
16sys.argv = [ me ]
17sys.argv.append( "egg_info" )
18if tag is not None:
19    sys.argv.append( "--tag-build=%s" %tag )
20# svn revision (if any) is handled directly in tag-build
21sys.argv.append( "--no-svn-revision" )
22sys.argv.append( "bdist_egg" )
23
24cc = get_solaris_compiler()
25if cc == 'cc':
26    os.environ['CFLAGS'] = '-xc99=all'
27    os.environ['LDFLAGS'] = '-lsocket -lnsl'
28
29# do it
30execfile( "setup.py", globals(), locals() )