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

https://bitbucket.org/cistrome/cistrome-harvard/ · Python · 33 lines · 20 code · 7 blank · 6 comment · 3 complexity · f80f2fbcba4f1b60aa5009f0dcedc2e8 MD5 · raw file

  1. import os, sys
  2. # change back to the build dir
  3. if os.path.dirname( sys.argv[0] ) != "":
  4. os.chdir( os.path.dirname( sys.argv[0] ) )
  5. # find setuptools
  6. sys.path.append( os.path.join( '..', '..', '..', 'lib' ) )
  7. from scramble_lib import *
  8. tag = get_tag() # get the tag
  9. get_deps() # require any dependent eggs
  10. clean() # clean up any existing stuff (could happen if you run scramble.py by hand)
  11. # reset args for distutils
  12. me = sys.argv[0]
  13. sys.argv = [ me ]
  14. sys.argv.append( "egg_info" )
  15. if tag is not None:
  16. sys.argv.append( "--tag-build=%s" %tag )
  17. # svn revision (if any) is handled directly in tag-build
  18. sys.argv.append( "--no-svn-revision" )
  19. sys.argv.append( "bdist_egg" )
  20. # apply patches (if any)
  21. apply_patches()
  22. cc = get_solaris_compiler()
  23. if cc == 'cc':
  24. os.environ['CFLAGS'] = '-xc99=all -D_X_OPEN_SOURCE=600 -D_XPG6=1'
  25. # do it
  26. execfile( "setup.py", globals(), locals() )