"version": get_version()[1:], "install_requires": requirements_list, "data_files": [("docs", ["LICENSE", "README"])], "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)
_setup = { "version": get_version()[1:], "data_files": [ ( "docs", [ "LICENSE", "README" ]) ], "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)