Dagger
Search

wheelbuilder

This module contains a function BuildWheel to build Python wheel files for a given package
and python version.
It uses the `build` package to build the wheel.
You can specify extra packages to install using the `extraBuildPackages` argument.

Installation

dagger install github.com/dlorenc/wheel-builder@9fe9943f88815d65f95ec99ecbe563be0e1c1331

Entrypoint

Return Type
Wheelbuilder
Example
dagger -m github.com/dlorenc/wheel-builder@9fe9943f88815d65f95ec99ecbe563be0e1c1331 call \
func (m *myModule) example() *Wheelbuilder  {
	return dag.
			Wheelbuilder()
}
@function
def example() -> dag.Wheelbuilder:
	return (
		dag.wheelbuilder()
	)
@func()
example(): Wheelbuilder {
	return dag
		.wheelbuilder()
}

Types

Wheelbuilder 🔗

buildWheel() 🔗

Builds a python wheel using the specified python version and source directory

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
pythonVersionString !"3.12"No description provided
extraBuildPackages[String ! ] []No description provided
Example
dagger -m github.com/dlorenc/wheel-builder@9fe9943f88815d65f95ec99ecbe563be0e1c1331 call \
 build-wheel --src DIR_PATH --python-version string
func (m *myModule) example(src *Directory, pythonVersion string) *Directory  {
	return dag.
			Wheelbuilder().
			BuildWheel(src, pythonVersion)
}
@function
def example(src: dagger.Directory, python_version: str) -> dagger.Directory:
	return (
		dag.wheelbuilder()
		.build_wheel(src, python_version)
	)
@func()
example(src: Directory, pythonVersion: string): Directory {
	return dag
		.wheelbuilder()
		.buildWheel(src, pythonVersion)
}