Skip to main content

An Scons library which wraps interface of various compilers in to one universal.

Project description

Description

An Scons library which wraps interface of various compilers in to one universal. Nucleotide allow us to make Scons files avoiding to explicitly state: platform, compiler, compiler’s version.

Quick example:

Next line set RTL:

settings.accumulate( 'RTL', { 'type': 'static', 'configuration' : 'debug' } )

and replace:

if( os.platform == 'win32' ):
    if( retrieve_compiler_name() == 'msvc' ):
        flag = 'M'
        if( 'dynamic' == retrieve_RTL_type() ):
            flag += 'D'
        if( 'static' == retrieve_RTL_type() ):
            flag += 'T'
        if( 'debug' == retrieve_configuration_type() ):
            flag += 'd'
        if( 'release' == retrieve_configuration_type() ):
            pass
        env.append( CPPFLAGS, [ flag ] )

    if( retrieve_compiler_name() == 'cygwin' ):
        env.append( LINKFLAGS, '-static' )

    if( retrieve_compiler_name() == 'mingw' ):
        env.append( LINKFLAGS, '-static' )
else:
    if( os.platform == 'linux' ):
        if( retrieve_compiler_name() == 'gcc' ):
            env.append( LINKFLAGS, '-static' )
... ... ...

Install:

Start command line and type: pip install nucleotide

Want to see more:

Project details


Release history Release notifications

This version
History Node

0.1.3

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
nucleotide-0.1.3.tar.gz (24.1 kB) Copy SHA256 hash SHA256 Source None Dec 7, 2016
nucleotide-0.1.3.zip (84.5 kB) Copy SHA256 hash SHA256 Source None Dec 7, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page