Example #1
0
# VERSION should be PEP386 compatible (http://www.python.org/dev/peps/pep-0386)
VERSION = '1.5.dev'

# Indicates if this version is a release version
RELEASE = 'dev' not in VERSION

if not RELEASE:
    VERSION += get_git_devstr(False)

# Populate the dict of setup command overrides; this should be done before
# invoking any other functionality from distutils since it can potentially
# modify distutils' behavior.
cmdclassd = register_commands(PACKAGENAME, VERSION, RELEASE)
add_command_option('install',
                   'with-openmp',
                   'compile TARDIS without OpenMP',
                   is_bool=True)
add_command_option('build',
                   'with-openmp',
                   'compile TARDIS without OpenMP',
                   is_bool=True)
add_command_option('develop',
                   'with-openmp',
                   'compile TARDIS without OpenMP',
                   is_bool=True)
add_command_option('install',
                   'with-vpacket-logging',
                   'compile TARDIS with virtual packet logging',
                   is_bool=True)
add_command_option('build',
                   'with-vpacket-logging',
Example #2
0
VERSION = metadata.get('version', '0.0.dev')

# Indicates if this version is a release version
RELEASE = 'dev' not in VERSION

if not RELEASE:
    VERSION += get_git_devstr(False)

# Populate the dict of setup command overrides; this should be done before
# invoking any other functionality from distutils since it can potentially
# modify distutils' behavior.
cmdclassd = register_commands(PACKAGENAME, VERSION, RELEASE)

add_command_option(
    'install',
    'with-openmp',
    'compile TARDIS with OpenMP',
    is_bool=True,
)
add_command_option('build',
                   'with-openmp',
                   'compile TARDIS with OpenMP',
                   is_bool=True)
add_command_option('develop',
                   'with-openmp',
                   'compile TARDIS with OpenMP',
                   is_bool=True)

# Freeze build information in version.py
generate_version_py(PACKAGENAME, VERSION, RELEASE,
                    get_debug_option(PACKAGENAME))
Example #3
0
builtins._ASTROPY_PACKAGE_NAME_ = PACKAGENAME

# VERSION should be PEP386 compatible (http://www.python.org/dev/peps/pep-0386)
VERSION = '1.5.dev'

# Indicates if this version is a release version
RELEASE = 'dev' not in VERSION

if not RELEASE:
    VERSION += get_git_devstr(False)

# Populate the dict of setup command overrides; this should be done before
# invoking any other functionality from distutils since it can potentially
# modify distutils' behavior.
cmdclassd = register_commands(PACKAGENAME, VERSION, RELEASE)
add_command_option('install', 'with-openmp', 'compile TARDIS without OpenMP',
                   is_bool=True)
add_command_option('build', 'with-openmp', 'compile TARDIS without OpenMP',
                   is_bool=True)
add_command_option('develop', 'with-openmp', 'compile TARDIS without OpenMP',
                   is_bool=True)
add_command_option('install', 'with-vpacket-logging', 'compile TARDIS with virtual packet logging',
                   is_bool=True)
add_command_option('build', 'with-vpacket-logging', 'compile TARDIS with virtual packet logging',
                   is_bool=True)
add_command_option('develop', 'with-vpacket-logging', 'compile TARDIS with virtual packet logging',
                   is_bool=True)

# Adjust the compiler in case the default on this platform is to use a
# broken one.
adjust_compiler(PACKAGENAME)
Example #4
0
builtins._ASTROPY_PACKAGE_NAME_ = PACKAGENAME

# VERSION should be PEP386 compatible (http://www.python.org/dev/peps/pep-0386)
VERSION = '1.0.1'

# Indicates if this version is a release version
RELEASE = 'dev' not in VERSION

if not RELEASE:
    VERSION += get_git_devstr(False)

# Populate the dict of setup command overrides; this should be done before
# invoking any other functionality from distutils since it can potentially
# modify distutils' behavior.
cmdclassd = register_commands(PACKAGENAME, VERSION, RELEASE)
add_command_option('install', 'with-openmp', 'compile TARDIS without OpenMP',
                   is_bool=True)
add_command_option('build', 'with-openmp', 'compile TARDIS without OpenMP',
                   is_bool=True)
add_command_option('develop', 'with-openmp', 'compile TARDIS without OpenMP',
                   is_bool=True)

# Adjust the compiler in case the default on this platform is to use a
# broken one.
adjust_compiler(PACKAGENAME)

# Freeze build information in version.py
generate_version_py(PACKAGENAME, VERSION, RELEASE,
                    get_debug_option(PACKAGENAME))

# Treat everything in scripts except README.rst as a script to be installed
scripts = [fname for fname in glob.glob(os.path.join('scripts', '*'))