PageRenderTime 27ms CodeModel.GetById 17ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/scripts/scramble/scripts/bx_python-solaris.py

https://bitbucket.org/cistrome/cistrome-harvard/
Python | 33 lines | 31 code | 1 blank | 1 comment | 1 complexity | f80f2fbcba4f1b60aa5009f0dcedc2e8 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
12get_deps() # require any dependent eggs
13clean() # clean up any existing stuff (could happen if you run scramble.py by hand)
14
15# reset args for distutils
16me = sys.argv[0]
17sys.argv = [ me ]
18sys.argv.append( "egg_info" )
19if tag is not None:
20    sys.argv.append( "--tag-build=%s" %tag )
21# svn revision (if any) is handled directly in tag-build
22sys.argv.append( "--no-svn-revision" )
23sys.argv.append( "bdist_egg" )
24
25# apply patches (if any)
26apply_patches()
27
28cc = get_solaris_compiler()
29if cc == 'cc':
30     os.environ['CFLAGS'] = '-xc99=all -D_X_OPEN_SOURCE=600 -D_XPG6=1'
31
32# do it
33execfile( "setup.py", globals(), locals() )