Example #1
0
def build_sdist(sdist_directory, config_settings=None):
    """Builds an sdist, places it in sdist_directory"""
    poetry = Factory().create_poetry(Path("."))

    path = SdistBuilder(poetry, SystemEnv(Path(sys.prefix)),
                        NullIO()).build(Path(sdist_directory))

    return unicode(path.name)
Example #2
0
def build_wheel(wheel_directory,
                config_settings=None,
                metadata_directory=None):
    """Builds a wheel, places it in wheel_directory"""
    poetry = Factory().create_poetry(Path("."))

    return unicode(
        WheelBuilder.make_in(poetry, SystemEnv(Path(sys.prefix)), NullIO(),
                             Path(wheel_directory)))