Skip to content

[BUG] Cannot specify build directory in bdist_wheel #4732

Open
@rossburton

Description

@rossburton

setuptools version

72.1.0

Python version

3.9

OS

Linux

Additional environment information

No response

Description

To ensure clean builds, we want to build python modules with a fresh build directory:

$ python3 setup.py build -b /a/fresh/directory

However, we can't then use this build tree with bdist_wheel as there's no option to specify where the build tree is when using --skip-build:

$ python3 ./setup.py bdist_wheel -b /a/fresh/directory --skip-build
running bdist_wheel
installing to /a/fresh/directory
running install
running install_lib
warning: install_lib: 'build/lib' does not exist -- no Python modules to install

Yes I know invoking setup.py is deprecated but there's no way to pass -j to build...

Expected behavior

bdist_wheel has an option to tell is where the build tree is.

How to Reproduce

$ python3 setup.py build -b /a/fresh/directory
$ python3 setup.py bdist_wheel -b /a/fresh/directory

Output

warning: install_lib: 'build/lib' does not exist -- no Python modules to install

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs TriageIssues that need to be evaluated for severity and status.bug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions