Esempio n. 1
0
    "test_suite": "tests"
}

if (_use_dist_mode):
    _setup['package_dir'] = {"": "src"}
    _setup['packages'] = find_packages("src")

    setup(**_setup)
else:
    with TemporaryDirectory(dir=".") as build_directory:
        parameters = {"dptCliVersion": get_version()}

        BuildPy.set_build_target_path(build_directory)
        BuildPy.set_build_target_parameters(parameters)

        Sdist.set_build_target_path(build_directory)
        Sdist.set_build_target_parameters(parameters)

        package_dir = path.join(build_directory, "src")
        makedirs(package_dir)

        _setup['package_dir'] = {"": package_dir}
        _setup['packages'] = ["dpt_cli"]

        # Customize "cmdclass" to first run builder.py
        _setup['cmdclass'] = {"build_py": BuildPy, "sdist": Sdist}

        setup(**_setup)
    #
#
Esempio n. 2
0
           "test_suite": "tests"
         }

if (_use_dist_mode):
    _setup['package_dir'] = { "": "src" }
    _setup['packages'] = find_packages("src")

    setup(**_setup)
else:
    with TemporaryDirectory(dir = ".") as build_directory:
        parameters = { "dptInteractiveCliVersion": get_version() }

        BuildPy.set_build_target_path(build_directory)
        BuildPy.set_build_target_parameters(parameters)

        Sdist.set_build_target_path(build_directory)
        Sdist.set_build_target_parameters(parameters)

        package_dir = path.join(build_directory, "src")
        makedirs(package_dir)

        _setup['package_dir'] = { "": package_dir }
        _setup['packages'] = [ "dpt_interactive_cli" ]

        # Customize "cmdclass" to first run builder.py
        _setup['cmdclass'] = { "build_py": BuildPy, "sdist": Sdist }

        setup(**_setup)
    #
#