Esempio n. 1
0
def validate_create_namespaces(dist, attr, value):
    """ Validation for create_namespaces keyword """
    assert_bool(dist, attr, value)

    if (value and dist.namespace_packages):
        setuptools.command.build_py.build_py = build_py
        setuptools.command.develop.develop = develop
Esempio n. 2
0
def validate_create_namespaces(dist, attr, value):
    """ Validation for create_namespaces keyword """
    assert_bool(dist, attr, value)

    if (value and dist.namespace_packages):
        setuptools.command.build_py.build_py = build_py
        setuptools.command.develop.develop = develop
Esempio n. 3
0
def validate_add_plat_name(dist, attr, value):
    """ Validation for add_plat_name keyword"""
    try:
        assert_bool(dist, attr, value)

        if (value):
            # Change commands
            set_has_ext_modules(dist)

    except (TypeError, ValueError, AttributeError, AssertionError):
        raise DistutilsSetupError(
            "%r must be a boolean (got %r)" % (attr, value))
Esempio n. 4
0
def validate_add_plat_name(dist, attr, value):
    """ Validation for add_plat_name keyword"""
    try:
        assert_bool(dist, attr, value)

        if (value):
            # Change commands
            set_has_ext_modules(dist)

    except (TypeError, ValueError, AttributeError, AssertionError):
        raise DistutilsSetupError("%r must be a boolean (got %r)" %
                                  (attr, value))